cw2d-2

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Keyboard_Ts.h

Committer:
wolve265
Date:
2020-05-11
Revision:
1:a89a995856ce
Parent:
0:6d0b62cb7525

File content as of revision 1:a89a995856ce:

#ifndef KEYBOARD_TS_H
#define KEYBOARD_TS_H

#include "TS_DISCO_F429ZI.h"

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

class KeyboardTs{
    private:
        TS_DISCO_F429ZI ts;
        TS_StateTypeDef TS_State;
        unsigned char ucKeyPosXLeft;
        unsigned char ucKeyPosXRight;
    public:
        KeyboardTs(unsigned char);
        enum KeyboardState eRead();
};
#endif