Program 2d_2 obsługujący wyświetlacz LCD
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
- Committer:
- apepkowski
- Date:
- 2020-06-01
- Revision:
- 1:bb8bfbe63b08
- Parent:
- 0:aa756e4665e5
File content as of revision 1:bb8bfbe63b08:
#include "KeyboardTsLcd.h" KeyboardTsLcd::KeyboardTsLcd(unsigned char ucColumnNr){ pKeyboard = new KeyboardTs(ucColumnNr); pLed = new LedLcd(ucColumnNr); } void KeyboardTsLcd::eRead(void){ 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 -> On(4); break; } }