The example program for mbed pin-compatible platforms - Blink the LED's alternately.
Fork of mbed_blinky by
Diff: main.cpp
- Revision:
- 1:f54cf65a063e
- Parent:
- 0:7dec7e9ac085
- Child:
- 2:e73b698f2566
--- a/main.cpp Fri Oct 11 12:42:44 2013 +0000 +++ b/main.cpp Fri Jan 31 05:55:49 2014 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" -DigitalOut myled(LED1); +DigitalOut green(LED1); +DigitalOut red(LED2); int main() { while(1) { - myled = 1; + red = 1; + green = 0; wait(0.2); - myled = 0; + red = 0; + green = 1; wait(0.2); } }