mbeed1sdf
Dependencies: BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed
Fork of 2D_2_ by
Diff: Keyboard_Ts.h
- Revision:
- 0:1f84f23f3814
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_Ts.h Mon May 29 14:37:50 2017 +0000 @@ -0,0 +1,24 @@ +#ifndef KEYBOARD_TS_H +#define KEYBOARD_TS_H +#include "TS_DISCO_F429ZI.h" +enum KeyboardState{ + BUTTON_0, + BUTTON_1, + BUTTON_2, + BUTTON_3, + RELASED + }; + +class KeyboardTs +{ + public: + KeyboardTs(uint8_t); + KeyboardState eRead(); + private: + uint8_t Column; + TS_DISCO_F429ZI ts; + TS_StateTypeDef TS_State; + +}; + +#endif \ No newline at end of file