a

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed

main.cpp

Committer:
pbl96
Date:
2017-04-24
Revision:
0:9d0b60394104

File content as of revision 0:9d0b60394104:

#include "mbed.h"
#include "Keyboard_TS.h"
#include "Led_Lcd.h"

int main()

{
    LedLcd Led(3);
    KeyboardTs Keyboard(3);

    while(1) {

        switch(Keyboard.eRead()) {
            case BUTTON_0:
                Led.On(0);
                break;

            case BUTTON_1:
                Led.On(1);
                break;

            case BUTTON_2:
                Led.On(2);
                break;

            case BUTTON_3:
                Led.On(3);
                break;
                
            default :
                Led.On(4);
                break;

        }

        wait(0.1);

    }

}