
Mbed part 1
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
KeyboardLed.cpp
- Committer:
- lolkusus
- Date:
- 2020-05-23
- Revision:
- 1:d392393df3d0
- Child:
- 3:715c5581d79f
File content as of revision 1:d392393df3d0:
#include "KeyboardLed.h" KeyboardLed::KeyboardLed(unsigned char _ucColumn) { pKeyboard = new Keyboard(_ucColumn); pLed = new Ledboard(_ucColumn); }; KeyState KeyboardLed::eRead() { 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->Off(); break; } return(pKeyboard->eRead()); }