...

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

keyboardtslcd.cpp

Committer:
Mistmist
Date:
2019-04-27
Revision:
0:bd1186e6ebb2

File content as of revision 0:bd1186e6ebb2:

#include "keyboardtslcd.h"
    
KeyboardTsLcd::KeyboardTsLcd(uint16_t  _ucColNr){
    pKeyboard = new KeyboardTs(_ucColNr);
    pLed = new LedLcd(_ucColNr);
};
    
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;
            
            }
    }