AGH UST mbed part 3

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
matis755
Date:
Thu May 07 15:13:01 2020 +0000
Revision:
0:f4a48c08fea7
Child:
1:36b3fd4a01fd
2d1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
matis755 0:f4a48c08fea7 1 #ifndef KEYBOARD_TS
matis755 0:f4a48c08fea7 2 #define KEYBOARD_TS
matis755 0:f4a48c08fea7 3
matis755 0:f4a48c08fea7 4 #include "TS_DISCO_F429ZI.h"
matis755 0:f4a48c08fea7 5
matis755 0:f4a48c08fea7 6 enum KeyboardState{
matis755 0:f4a48c08fea7 7 RELASED,
matis755 0:f4a48c08fea7 8 BUTTON_1,
matis755 0:f4a48c08fea7 9 BUTTON_2,
matis755 0:f4a48c08fea7 10 BUTTON_3,
matis755 0:f4a48c08fea7 11 BUTTON_4
matis755 0:f4a48c08fea7 12 };
matis755 0:f4a48c08fea7 13
matis755 0:f4a48c08fea7 14 class KeyboardTs : private TS_DISCO_F429ZI {
matis755 0:f4a48c08fea7 15 private:
matis755 0:f4a48c08fea7 16 unsigned char ucColIdx;
matis755 0:f4a48c08fea7 17 public:
matis755 0:f4a48c08fea7 18 KeyboardTs(unsigned char);
matis755 0:f4a48c08fea7 19 enum KeyboardState eRead(void);
matis755 0:f4a48c08fea7 20
matis755 0:f4a48c08fea7 21 };
matis755 0:f4a48c08fea7 22
matis755 0:f4a48c08fea7 23 #endif