LED1 to LED3
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:c0aee9c4a3e0
- Child:
- 1:bb025fa34c62
diff -r 000000000000 -r c0aee9c4a3e0 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 05 09:56:47 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() +{ + while(1) { + myled = 1; // LED is ON + wait(0.2); // 200 ms + myled = 0; // LED is OFF + wait(0.2); // 1 sec + } +}