Compass Yap
/
Test_mbed_blinky
hello test
Revision 1:956ce737cb2b, committed 2017-09-21
- Comitter:
- Compass_Yap
- Date:
- Thu Sep 21 05:41:09 2017 +0000
- Parent:
- 0:4651d2bc2edf
- Commit message:
- Test_revison
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4651d2bc2edf -r 956ce737cb2b main.cpp --- 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); } }