2d1

Fork of TS_DISCO_F429ZI by ST

Committer:
Robsonik16
Date:
Fri May 05 19:38:00 2017 +0000
Revision:
1:972c0d202476
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Robsonik16 1:972c0d202476 1
Robsonik16 1:972c0d202476 2 #ifndef KEYBOARD_H
Robsonik16 1:972c0d202476 3 #define KEYBOARD_H
Robsonik16 1:972c0d202476 4
Robsonik16 1:972c0d202476 5 #include "mbed.h"
Robsonik16 1:972c0d202476 6 #include "TS_DISCO_F429ZI.h"
Robsonik16 1:972c0d202476 7 #include "Keyboard_Ts.h"
Robsonik16 1:972c0d202476 8 #include "Led_Lcd.h"
Robsonik16 1:972c0d202476 9
Robsonik16 1:972c0d202476 10
Robsonik16 1:972c0d202476 11 enum KeyboardState{
Robsonik16 1:972c0d202476 12 RELASED,
Robsonik16 1:972c0d202476 13 BUTTON_0,
Robsonik16 1:972c0d202476 14 BUTTON_1,
Robsonik16 1:972c0d202476 15 BUTTON_2,
Robsonik16 1:972c0d202476 16 BUTTON_3};
Robsonik16 1:972c0d202476 17
Robsonik16 1:972c0d202476 18 class KeyboardTs
Robsonik16 1:972c0d202476 19 :public LedLcd
Robsonik16 1:972c0d202476 20 {
Robsonik16 1:972c0d202476 21 public:
Robsonik16 1:972c0d202476 22 KeyboardTs(unsigned char _ucColIndex=0);
Robsonik16 1:972c0d202476 23 enum KeyboardState eRead(void);
Robsonik16 1:972c0d202476 24 private:
Robsonik16 1:972c0d202476 25 bool touchInRect(uint16_t TouchXpos, uint16_t TouchYpos,uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height);
Robsonik16 1:972c0d202476 26 uint16_t x, y;
Robsonik16 1:972c0d202476 27 unsigned char ucColIndex;
Robsonik16 1:972c0d202476 28 };
Robsonik16 1:972c0d202476 29 #endif
Robsonik16 1:972c0d202476 30
Robsonik16 1:972c0d202476 31
Robsonik16 1:972c0d202476 32