AGH UST mbed part 3

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
matis755
Date:
Sat May 09 08:31:59 2020 +0000
Revision:
1:36b3fd4a01fd
Parent:
0:f4a48c08fea7
Add second column on display

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 1:36b3fd4a01fd 8 BUTTON_0,
matis755 0:f4a48c08fea7 9 BUTTON_1,
matis755 0:f4a48c08fea7 10 BUTTON_2,
matis755 1:36b3fd4a01fd 11 BUTTON_3
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