test33
Diff: main.cpp
- Revision:
- 0:870b78bb0e3d
- Child:
- 1:b6a407375dcc
diff -r 000000000000 -r 870b78bb0e3d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Mar 29 17:11:41 2014 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() +{ + while(1) { + myled = 1; // LED is ON + wait(0.2); // 200ms + myled = 0; // LED is OFF + wait(1.0); // 1 sec + } +}