LED and button system2

Dependencies:   mbed

Fork of LEDandButton by wang tang

Files at this revision

API Documentation at this revision

Comitter:
e58136782000
Date:
Fri Oct 20 07:31:31 2017 +0000
Parent:
3:684d085cd132
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 684d085cd132 -r afd407e92a89 main.cpp
--- a/main.cpp	Fri Oct 20 07:30:27 2017 +0000
+++ b/main.cpp	Fri Oct 20 07:31:31 2017 +0000
@@ -11,7 +11,7 @@
     while(1)
     {
 
-        if(button == true)
+        if(button == false)
         {
            led1 =! led1;
            wait(0.5);