Mbed cz.1 cwiczenie ostatnie (2d2)

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Keyboard_Ts.h

Committer:
dzialowy04
Date:
2020-05-18
Revision:
0:036c13c6cbb6

File content as of revision 0:036c13c6cbb6:

#ifndef KEYBOARDTS_H
#define KEYBOARDTS_H
#include "TS_DISCO_F429ZI.h"

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

class KeyboardTs{
    private:
        TS_DISCO_F429ZI ts;
        TS_StateTypeDef TS_State;
        unsigned char ucLeftBoundary;
        unsigned char ucRightBoundary;
    public:
        KeyboardTs(unsigned char);
        enum KeyboardState eRead();
};

#endif