
MBED1_d2
Dependencies: MBED1zadD2 mbed BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
- Committer:
- filipksiezyc
- Date:
- 2020-05-23
- Revision:
- 0:a4ef65ad159f
- Child:
- 1:05446788fe9c
File content as of revision 0:a4ef65ad159f:
#include "KeyboardTsLcd.h" KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn){ pKeyboard = new KeyboardTs(0); pLed = new LedLcd(_ucColumn); } enum eButtonStates KeyboardTsLcd::eRead(){ enum eButtonStates eReturnValue; switch(pKeyboard->eRead()) { case BUTTON_0: eReturnValue=BUTTON_0; pLed->On(0); break; case BUTTON_1: eReturnValue=BUTTON_1; pLed->On(1); break; case BUTTON_2: eReturnValue=BUTTON_2; pLed->On(2); break; case BUTTON_3: eReturnValue=BUTTON_3; pLed->On(3); break; default : eReturnValue=NONE; pLed->On(4); break; } return eReturnValue; }