Compass Yap
/
Test_mbed_blinky
hello test
Diff: main.cpp
- Revision:
- 1:956ce737cb2b
- Parent:
- 0:4651d2bc2edf
--- a/main.cpp Thu Sep 21 05:34:49 2017 +0000 +++ b/main.cpp Thu Sep 21 05:41:09 2017 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" DigitalOut myled(LED1); +DigitalOut myled2(LED2); int main() { while(1) { myled = 1; - wait(0.2); + myled = 0; + wait(0.5); myled = 0; - wait(0.2); + myled2 = 1; + wait(0.5); } }