Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Keyboard_Ts.h
- Revision:
- 0:528c126a5ac9
- Child:
- 1:3f9eb24c51b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_Ts.h Sun May 10 20:47:57 2020 +0000 @@ -0,0 +1,19 @@ +#ifndef KEYBOARD_TS_H +#define KEYBOARD_TS_H + +#include "TS_DISCO_F429ZI.h" + +enum eKeyboardTsState {BUTTON_0 , BUTTON_1 , BUTTON_2 , BUTTON_3, RELEASED}; + +class KeyboardTs{ + public: + KeyboardTs(unsigned char); + enum eKeyboardTsState eRead(void); + private: + TS_DISCO_F429ZI ts; + TS_StateTypeDef TS_State; + uint16_t x, y; + unsigned char ucColumnIndex; +}; + +#endif \ No newline at end of file