MTM PPO mbed2d-2 program

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Revision:
2:ce9137eb0655
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KeyboardLed.cpp	Mon Jun 22 14:15:01 2020 +0000
@@ -0,0 +1,26 @@
+#include "KeyboardLed.h"
+
+KeyboardLed::KeyboardLed(unsigned char _ucColumn){
+    pKeyboard = new Keyboard(_ucColumn);
+    pLed =      new Ledboard(_ucColumn);
+}
+
+enum eKeyboardState KeyboardLed::eRead(void){
+    switch(pKeyboard->eRead()) {
+        case BUTTON_0:
+            pLed->On(0);
+            return BUTTON_0;
+        case BUTTON_1:
+            pLed->On(1);
+            return BUTTON_1;
+        case BUTTON_2:
+            pLed->On(2);
+            return BUTTON_2;
+        case BUTTON_3:
+            pLed->On(3);
+            return BUTTON_3;
+        default :
+            pLed->Off();
+            return RELEASED;
+        }
+}
\ No newline at end of file