kwangje jo
/
mbed_blinky
led
Diff: main.cpp
- Revision:
- 0:31408c00a214
- Child:
- 1:883bcb081bf0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 07 11:33:00 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalOut myled2(LED2); +int main() { + while(1) { + myled = 1; + myled2 = 0; + + wait(0.2); + myled = 0; + myled2 = 1; + wait(0.2); + } +}