by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"
Diff: main.cpp
- Revision:
- 0:241d9ee41621
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 31 15:20:19 2012 +0000 @@ -0,0 +1,13 @@ +/* Program Example 2.1: Simple LED flashing + */ +#include "mbed.h" +DigitalOut myled(LED1); +int main() +{ + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}