Aa

Dependents:   EMBEED_III_zad_4 mbed3 mbed_3 MBED3_zad4

Revision:
1:374a3d1fe780
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Keyboard.h	Sat Jun 13 13:28:40 2020 +0000
@@ -0,0 +1,24 @@
+#ifndef KEYBOARD_H
+    #define KEYBOARD_H
+    #include "TS_DISCO_F429ZI.h"
+    enum KeyboardState
+    {
+        BUTTON_0 = 0,
+        BUTTON_1 = 1,
+        BUTTON_2 = 2,
+        BUTTON_3 = 3,
+        RELEASED = 4
+    }; 
+    class Keyboard
+    {
+        public:
+            Keyboard(unsigned char ucColumnMode);
+            enum KeyboardState eRead(void);
+        private:
+            TS_DISCO_F429ZI ts;
+            TS_StateTypeDef TS_State;
+            unsigned char ucTouchscreenColumn;
+    };
+#else
+    #error "This class was definied previously"
+#endif