Vadim Kusher
/
Nucleo_blink_led
Blink Led
Revision 1:aa36bb3b5a23, committed 2019-10-20
- Comitter:
- vadik1
- Date:
- Sun Oct 20 17:30:18 2019 +0000
- Parent:
- 0:05be8bebcde5
- Commit message:
- ww
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 05be8bebcde5 -r aa36bb3b5a23 main.cpp --- a/main.cpp Sun Oct 20 13:12:04 2019 +0000 +++ b/main.cpp Sun Oct 20 17:30:18 2019 +0000 @@ -2,11 +2,15 @@ DigitalOut myled(LED1); + int main() { - while(1) { + int i = 1; + + while(1) { myled = 1; // LED is ON wait(0.2); // 200 ms - myled = 0; // LED is OFF + myled = 0; // LED is OFF + wait(1.0); // 1 sec } }
diff -r 05be8bebcde5 -r aa36bb3b5a23 mbed.bld --- a/mbed.bld Sun Oct 20 13:12:04 2019 +0000 +++ b/mbed.bld Sun Oct 20 17:30:18 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file