Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LED2 by
Revision 5:26c21c978f66, committed 2017-10-20
- Comitter:
- e58136782000
- Date:
- Fri Oct 20 07:36:29 2017 +0000
- Parent:
- 4:afd407e92a89
- Commit message:
- LED and button 3:; on: blinky; off: led1 on
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r afd407e92a89 -r 26c21c978f66 main.cpp --- a/main.cpp Fri Oct 20 07:31:31 2017 +0000 +++ b/main.cpp Fri Oct 20 07:36:29 2017 +0000 @@ -11,7 +11,7 @@ while(1) { - if(button == false) + if(button == true) { led1 =! led1; wait(0.5); @@ -22,7 +22,7 @@ } else { - led1 = false; + led1 = true; led2 = false; led3 = false; }