aa
Dependents: EMBEED_I_zad_2d_II
Diff: Keyboard_Ts.h
- Revision:
- 1:e8c0a6de6c68
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_Ts.h Fri May 08 19:04:46 2020 +0000 @@ -0,0 +1,24 @@ +#ifndef KEYBOARD_TS_H + #define KEYBOARD_TS_H + #include "TS_DISCO_F429ZI.h" + enum KeyboardState + { + BUTTON_0 = 0, + BUTTON_1 = 1, + BUTTON_2 = 2, + BUTTON_3 = 3, + RELEASED = 4 + }; + class KeyboardTs + { + public: + KeyboardTs(unsigned char ucMode); + enum KeyboardState eRead(); + private: + TS_DISCO_F429ZI ts; + TS_StateTypeDef TS_State; + unsigned char ucTouchscreenColumn; + }; +#else + #error "This class was definied previously" +#endif