mbed_1 - last program

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Revision:
2:39601122cf74
Parent:
0:f3da1afb14d9
--- a/main.cpp	Mon May 11 18:19:58 2020 +0000
+++ b/main.cpp	Mon Jun 01 17:08:22 2020 +0000
@@ -9,7 +9,23 @@
     while(1){
         Keyboard.eRead();
         wait(0.1);
-        LedLcd.pLed -> On(3 - Keyboard.pKeyboard -> eRead());
+        switch(Keyboard.pKeyboard -> eRead()){
+            case BUTTON_0:
+                LedLcd.pLed -> On(BUTTON_3);
+            break;
+            case BUTTON_1:
+                LedLcd.pLed -> On(BUTTON_2);
+            break;
+            case BUTTON_2:
+                LedLcd.pLed -> On(BUTTON_1);
+            break;
+            case BUTTON_3:
+                LedLcd.pLed -> On(BUTTON_0);
+            break;
+            default:
+                LedLcd.pLed -> On(NO_BUTTON_PRESSED);
+            break;
+        }
         wait(0.1);
     }
 }
\ No newline at end of file