Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 0:8a56d85a76bc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jun 01 11:13:48 2020 +0000 @@ -0,0 +1,39 @@ +#include "mbed.h" +#include "KeyboardTsLcd.h" +#include "KeyboardTs.h" +#include "LedLcd.h" + +KeyboardTsLcd Keyboard(0); +KeyboardTs Keyboard_2(0); +LedLcd Led_2(2); + +int main() +{ + + + while(1) + { + wait(0.1); + switch(Keyboard.eRead()) { + case BUTTON_0: + Led_2.On(3); + break; + case BUTTON_1: + Led_2.On(2); + break; + case BUTTON_2: + Led_2.On(1); + break; + case BUTTON_3: + Led_2.On(0); + break; + default: + Led_2.On(4); + break; + + } + } + + +} +