wang tang
/
LEDandButton
LED and button system
Fork of LED by
Revision 3:684d085cd132, committed 2017-10-20
- Comitter:
- e58136782000
- Date:
- Fri Oct 20 07:30:27 2017 +0000
- Parent:
- 2:7bb4b5066464
- Commit message:
- LED and button
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7bb4b5066464 -r 684d085cd132 main.cpp --- a/main.cpp Fri Oct 20 07:29:03 2017 +0000 +++ b/main.cpp Fri Oct 20 07:30:27 2017 +0000 @@ -11,7 +11,7 @@ while(1) { - if(button == false) + if(button == true) { led1 =! led1; wait(0.5);