
Mbed part 1
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: KeyboardLed.cpp
- Revision:
- 3:715c5581d79f
- Parent:
- 1:d392393df3d0
--- a/KeyboardLed.cpp Sat May 23 20:24:26 2020 +0000 +++ b/KeyboardLed.cpp Mon May 25 16:05:31 2020 +0000 @@ -3,7 +3,7 @@ KeyboardLed::KeyboardLed(unsigned char _ucColumn) { pKeyboard = new Keyboard(_ucColumn); - pLed = new Ledboard(_ucColumn); + pLedboard = new Ledboard(_ucColumn); }; KeyState KeyboardLed::eRead() @@ -11,19 +11,19 @@ switch(pKeyboard->eRead()) { case BUTTON_0: - pLed->On(0); + pLedboard->On(0); break; case BUTTON_1: - pLed->On(1); + pLedboard->On(1); break; case BUTTON_2: - pLed->On(2); + pLedboard->On(2); break; case BUTTON_3: - pLed->On(3); + pLedboard->On(3); break; default : - pLed->Off(); + pLedboard->Off(); break; } return(pKeyboard->eRead());