MTM PPO mbed cz3
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Keyboard_Ts_Lcd.cpp
- Revision:
- 2:ce9137eb0655
- Parent:
- 1:3f9eb24c51b2
--- a/Keyboard_Ts_Lcd.cpp Mon May 11 09:27:05 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include "Keyboard_Ts_Lcd.h" - -KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn){ - pKeyboard = new KeyboardTs(_ucColumn); - pLed = new LedLcd(_ucColumn); -} - -void KeyboardTsLcd::eRead(void){ - switch(pKeyboard->eRead()) { - case BUTTON_0: - pLed->On(0); - break; - case BUTTON_1: - pLed->On(1); - break; - case BUTTON_2: - pLed->On(2); - break; - case BUTTON_3: - pLed->On(3); - break; - default : - pLed->On(4); - break; - } -} \ No newline at end of file