Revision 1:e363bc951921, committed 2018-09-29
- Comitter:
- samtech
- Date:
- Sat Sep 29 20:07:49 2018 +0000
- Parent:
- 0:fe9f4778556e
- Commit message:
- de;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fe9f4778556e -r e363bc951921 main.cpp --- a/main.cpp Sat Sep 29 19:59:47 2018 +0000 +++ b/main.cpp Sat Sep 29 20:07:49 2018 +0000 @@ -1,12 +1,13 @@ #include "mbed.h" DigitalOut LED_1(LED1); DigitalOut LED_2(LED2); -int main() { +int main() +{ while(1) { LED_1 = 1; // LED is ON LED_2 = 0; // LED is ON wait(0.5); // 200 ms - LED_1 = 0; // LED is ON + LED_1 = 0; // LED is ON LED_2 = 1; // LED is ON wait(0.5); // 1 sec }