a

Dependents:   2c

Committer:
Dom952
Date:
Sat Apr 23 17:44:02 2016 +0000
Revision:
0:8e2c3c55da79
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Dom952 0:8e2c3c55da79 1 #ifndef KEYBOARD_TS_H
Dom952 0:8e2c3c55da79 2 #define KEYBOARD_TS_H
Dom952 0:8e2c3c55da79 3
Dom952 0:8e2c3c55da79 4 #include "TS_DISCO_F429ZI.h"
Dom952 0:8e2c3c55da79 5
Dom952 0:8e2c3c55da79 6 enum KeyboardTsState { RELASED , BUTTON_0 , BUTTON_1 , BUTTON_2 , BUTTON_3 };
Dom952 0:8e2c3c55da79 7
Dom952 0:8e2c3c55da79 8 class KeyboardTs{
Dom952 0:8e2c3c55da79 9 public:
Dom952 0:8e2c3c55da79 10 KeyboardTs (unsigned char);
Dom952 0:8e2c3c55da79 11 enum KeyboardTsState eRead (void);
Dom952 0:8e2c3c55da79 12 private:
Dom952 0:8e2c3c55da79 13 unsigned char Column;
Dom952 0:8e2c3c55da79 14 uint16_t x, y;
Dom952 0:8e2c3c55da79 15 TS_DISCO_F429ZI ts;
Dom952 0:8e2c3c55da79 16 TS_StateTypeDef TS_State;
Dom952 0:8e2c3c55da79 17 };
Dom952 0:8e2c3c55da79 18
Dom952 0:8e2c3c55da79 19 #endif