AGH UST mbed part 3

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Keyboard.h

Committer:
matis755
Date:
2020-05-23
Revision:
2:db40a2b0b177
Parent:
Keyboard_Ts.h@ 1:36b3fd4a01fd

File content as of revision 2:db40a2b0b177:

#ifndef KEYBOARD_
#define KEYBOARD

#include "TS_DISCO_F429ZI.h"

enum KeyboardState{
    RELASED,
    BUTTON_0,
    BUTTON_1,
    BUTTON_2,
    BUTTON_3
};

class Keyboard : private TS_DISCO_F429ZI {
    private:
        unsigned char ucColIdx;
    public:
        Keyboard(unsigned char);
        enum KeyboardState eRead(void);  
    
};

#endif