
Mbed part 1
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Keyboard.h
- Revision:
- 1:d392393df3d0
- Child:
- 3:715c5581d79f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard.h Sat May 23 20:23:36 2020 +0000 @@ -0,0 +1,22 @@ +#ifndef __Keyboard_H +#define __Keyboard_H + +typedef enum KeyState +{ + BUTTON_0, + BUTTON_1, + BUTTON_2, + BUTTON_3, + NONE +} KeyState; + +class Keyboard +{ + public: + Keyboard(unsigned char ucColumn = 0); + KeyState eRead(); + private: + unsigned char ucColumnNumber; +}; + +#endif