The example program for mbed pin-compatible platforms - Blink the LED's alternately.
Fork of mbed_blinky by
main.cpp
- Committer:
- mja054
- Date:
- 2014-01-31
- Revision:
- 2:e73b698f2566
- Parent:
- 1:f54cf65a063e
File content as of revision 2:e73b698f2566:
#include "mbed.h" #include "rtos.h" DigitalOut green(LED1); DigitalOut red(LED2); int main() { while(1) { red = 1; green = 0; wait(0.2); red = 0; green = 1; wait(0.2); } }