AGH MTM PPO MBED

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
matis755
Date:
Thu May 07 15:13:01 2020 +0000
Revision:
0:f4a48c08fea7
Child:
1:36b3fd4a01fd
2d1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
matis755 0:f4a48c08fea7 1 #include "Keyboard_Ts_Lcd.h"
matis755 0:f4a48c08fea7 2
matis755 0:f4a48c08fea7 3 KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn)
matis755 0:f4a48c08fea7 4 {
matis755 0:f4a48c08fea7 5 pKeyboard = new KeyboardTs(_ucColumn);
matis755 0:f4a48c08fea7 6 pLed = new LedLcd(_ucColumn);
matis755 0:f4a48c08fea7 7 };
matis755 0:f4a48c08fea7 8
matis755 0:f4a48c08fea7 9 void KeyboardTsLcd::eRead(void) {
matis755 0:f4a48c08fea7 10 switch(pKeyboard -> eRead()) {
matis755 0:f4a48c08fea7 11 case BUTTON_1:
matis755 0:f4a48c08fea7 12 pLed -> On(0);
matis755 0:f4a48c08fea7 13 break;
matis755 0:f4a48c08fea7 14 case BUTTON_2:
matis755 0:f4a48c08fea7 15 pLed -> On(1);
matis755 0:f4a48c08fea7 16 break;
matis755 0:f4a48c08fea7 17 case BUTTON_3:
matis755 0:f4a48c08fea7 18 pLed -> On(2);
matis755 0:f4a48c08fea7 19 break;
matis755 0:f4a48c08fea7 20 case BUTTON_4:
matis755 0:f4a48c08fea7 21 pLed -> On(3);
matis755 0:f4a48c08fea7 22 break;
matis755 0:f4a48c08fea7 23 default :
matis755 0:f4a48c08fea7 24 pLed -> On(4);
matis755 0:f4a48c08fea7 25 break;
matis755 0:f4a48c08fea7 26 }
matis755 0:f4a48c08fea7 27 }