2d1
Fork of TS_DISCO_F429ZI by
Diff: Keyboard_Ts.h
- Revision:
- 1:972c0d202476
diff -r 4f8b6df8e235 -r 972c0d202476 Keyboard_Ts.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_Ts.h Fri May 05 19:38:00 2017 +0000 @@ -0,0 +1,32 @@ + +#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(unsigned char _ucColIndex=0); + 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; + unsigned char ucColIndex; +}; +#endif + + +