a
Keyboard_Ts.h@0:1ef69e2e92e4, 2016-04-23 (annotated)
- Committer:
- Dom952
- Date:
- Sat Apr 23 17:42:21 2016 +0000
- Revision:
- 0:1ef69e2e92e4
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Dom952 | 0:1ef69e2e92e4 | 1 | #ifndef KEYBOARD_TS_H |
Dom952 | 0:1ef69e2e92e4 | 2 | #define KEYBOARD_TS_H |
Dom952 | 0:1ef69e2e92e4 | 3 | |
Dom952 | 0:1ef69e2e92e4 | 4 | #include "TS_DISCO_F429ZI.h" |
Dom952 | 0:1ef69e2e92e4 | 5 | |
Dom952 | 0:1ef69e2e92e4 | 6 | enum KeyboardTsState { RELASED , BUTTON_0 , BUTTON_1 , BUTTON_2 , BUTTON_3 }; |
Dom952 | 0:1ef69e2e92e4 | 7 | |
Dom952 | 0:1ef69e2e92e4 | 8 | class KeyboardTs{ |
Dom952 | 0:1ef69e2e92e4 | 9 | public: |
Dom952 | 0:1ef69e2e92e4 | 10 | KeyboardTs (); |
Dom952 | 0:1ef69e2e92e4 | 11 | enum KeyboardTsState eRead (void); |
Dom952 | 0:1ef69e2e92e4 | 12 | private: |
Dom952 | 0:1ef69e2e92e4 | 13 | uint16_t x, y; |
Dom952 | 0:1ef69e2e92e4 | 14 | TS_DISCO_F429ZI ts; |
Dom952 | 0:1ef69e2e92e4 | 15 | TS_StateTypeDef TS_State; |
Dom952 | 0:1ef69e2e92e4 | 16 | }; |
Dom952 | 0:1ef69e2e92e4 | 17 | |
Dom952 | 0:1ef69e2e92e4 | 18 | #endif |