![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LED and button system3
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; }