![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LED and button system3
Fork of LED2 by
Diff: main.cpp
- Revision:
- 5:26c21c978f66
- Parent:
- 4:afd407e92a89
--- 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; }