2b

Fork of TS_DISCO_F429ZI by ST

Revision:
1:ad1c1b95640c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Keyboard_Ts.h	Fri May 05 19:33:30 2017 +0000
@@ -0,0 +1,31 @@
+
+#ifndef KEYBOARD_H
+#define KEYBOARD_H
+
+#include "mbed.h"
+#include "TS_DISCO_F429ZI.h"
+#include "Keyboard_Ts.h"
+#include "Led_Lcd.h"
+
+
+enum KeyboardState{
+    RELASED,
+    BUTTON_0,
+    BUTTON_1,
+    BUTTON_2,
+    BUTTON_3};
+
+class KeyboardTs
+:public LedLcd
+{
+    public:
+        KeyboardTs(void);
+        enum KeyboardState eRead(void);
+        private:
+        bool touchInRect(uint16_t TouchXpos, uint16_t TouchYpos,uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
+        uint16_t x, y;
+};
+#endif
+
+
+