AGH UST mbed part 3
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Keyboard_Ts.h
- Revision:
- 0:f4a48c08fea7
- Child:
- 1:36b3fd4a01fd
diff -r 000000000000 -r f4a48c08fea7 Keyboard_Ts.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_Ts.h Thu May 07 15:13:01 2020 +0000 @@ -0,0 +1,23 @@ +#ifndef KEYBOARD_TS +#define KEYBOARD_TS + +#include "TS_DISCO_F429ZI.h" + +enum KeyboardState{ + RELASED, + BUTTON_1, + BUTTON_2, + BUTTON_3, + BUTTON_4 +}; + +class KeyboardTs : private TS_DISCO_F429ZI { + private: + unsigned char ucColIdx; + public: + KeyboardTs(unsigned char); + enum KeyboardState eRead(void); + +}; + +#endif \ No newline at end of file