mbed1 - final ex.2d-2
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
- Committer:
- domino5740
- Date:
- 2020-05-09
- Revision:
- 1:6d73aee900b3
- Parent:
- 0:88ab6a9221e8
File content as of revision 1:6d73aee900b3:
#include "KeyboardTsLcd.h" #include "Keyboard_Ts.h" #include "Led_Lcd.h" KeyboardTsLcd::KeyboardTsLcd(unsigned char ucColumn) { pKeyboard = new Keyboard_Ts(ucColumn); pLed = new Led_Lcd(ucColumn); } enum Read KeyboardTsLcd::eRead() { switch(pKeyboard -> eRead()) { case BUTTON_0: pLed -> On(0); return BUTTON_0; case BUTTON_1: pLed -> On(1); return BUTTON_1; case BUTTON_2: pLed -> On(2); return BUTTON_2; case BUTTON_3: pLed -> On(3); return BUTTON_3; default: pLed -> On(4); return NO_BUTTON; } }