2c

Fork of TS_DISCO_F429ZI by ST

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Keyboard_Ts.h Source File

Keyboard_Ts.h

00001 
00002 #ifndef KEYBOARD_H
00003 #define KEYBOARD_H
00004 
00005 #include "mbed.h"
00006 #include "TS_DISCO_F429ZI.h"
00007 #include "Keyboard_Ts.h"
00008 #include "Led_Lcd.h"
00009 
00010 
00011 enum KeyboardState{
00012     RELASED,
00013     BUTTON_0,
00014     BUTTON_1,
00015     BUTTON_2,
00016     BUTTON_3};
00017 
00018 class KeyboardTs
00019 :public LedLcd
00020 {
00021     public:
00022         KeyboardTs(unsigned char _ucColIndex=0);
00023         enum KeyboardState eRead(void);
00024         private:
00025         bool touchInRect(uint16_t TouchXpos, uint16_t TouchYpos,uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
00026         uint16_t x, y;
00027         unsigned char ucColIndex;
00028 };
00029 #endif
00030 
00031 
00032