a

Dependents:   2d1

Files at this revision

API Documentation at this revision

Comitter:
Dom952
Date:
Sat Apr 23 17:52:33 2016 +0000
Commit message:
a

Changed in this revision

KeyboardTsLcd.cpp Show annotated file Show diff for this revision Revisions of this file
KeyboardTsLcd.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r ac955d66b87c KeyboardTsLcd.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KeyboardTsLcd.cpp	Sat Apr 23 17:52:33 2016 +0000
@@ -0,0 +1,28 @@
+#include "KeyboardTsLcd.h"
+
+KeyboardTsLcd::KeyboardTsLcd (unsigned char _ucColumn)
+{
+    pKeyboard = new KeyboardTs(_ucColumn);
+    pLed = new LedLcd(_ucColumn);
+}
+
+void KeyboardTsLcd::eRead( void )
+{
+        switch(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;
+        }
+}
\ No newline at end of file
diff -r 000000000000 -r ac955d66b87c KeyboardTsLcd.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KeyboardTsLcd.h	Sat Apr 23 17:52:33 2016 +0000
@@ -0,0 +1,16 @@
+#ifndef KEYBOARD_TSLCD_H
+#define KEYBOARD_TSLCD_H
+
+#include "Keyboard_Ts.h"
+#include "Led_Lcd.h"
+
+class KeyboardTsLcd{
+public:
+    KeyboardTsLcd (unsigned char);
+    void eRead (void);
+private:
+    LedLcd * pLed;
+    KeyboardTs * pKeyboard;
+};
+
+#endif
\ No newline at end of file