qwerty

Dependencies:   mbed

Fork of 1620_App_Board_Buttons by Craig Evans

Revision:
4:bb53d2d88f12
Parent:
3:cb287ef68787
--- a/main.cpp	Wed Jan 10 14:27:38 2018 +0000
+++ b/main.cpp	Sun Apr 22 08:53:30 2018 +0000
@@ -45,6 +45,12 @@
         } else {
             blue_led.write(1);  // if it isn't, turn the red LED on
         }
+        
+        if (button_D.read() == 1) {
+            red_led.write(0) && green_led.write(0);
+        } else {
+            red_led.write(1) && green_led.write(1);
+        }
 
 
         wait(0.1);  // small delay