mbeed1sdf

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed

Fork of 2D_2_ by Adrian Nowak

Revision:
0:1f84f23f3814
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KeyboardTsLcd.cpp	Mon May 29 14:37:50 2017 +0000
@@ -0,0 +1,35 @@
+#include "KeyboardTsLcd.h"
+
+KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn)
+{
+pKeyboard = new KeyboardTs(_ucColumn);
+pLed = new LedLcd(_ucColumn);
+};
+
+KeyboardState KeyboardTsLcd::eRead()
+ {
+     KeyboardState BP;
+     switch(BP = pKeyboard->eRead()) {
+            case BUTTON_0:
+                pLed->On(0);
+                break;
+                
+            case BUTTON_1:
+                pLed->On(1);
+                break;
+                
+            case BUTTON_2:
+                pLed->On(2);
+                break;
+                
+            case BUTTON_3:
+                pLed->On(3);
+                break;
+                
+            default :
+                pLed->On(4);
+                break;
+        }
+        return BP;
+     
+ }
\ No newline at end of file