
MTM PPO mbed2d-2 program
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
KeyboardLed.cpp
- Committer:
- paweler
- Date:
- 2020-06-22
- Revision:
- 2:ce9137eb0655
File content as of revision 2:ce9137eb0655:
#include "KeyboardLed.h" KeyboardLed::KeyboardLed(unsigned char _ucColumn){ pKeyboard = new Keyboard(_ucColumn); pLed = new Ledboard(_ucColumn); } enum eKeyboardState KeyboardLed::eRead(void){ 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->Off(); return RELEASED; } }