
2d_2 Tomasz Balon
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 1:d168af8a9cbc
- Parent:
- 0:e7ba689326e2
- Child:
- 2:74b337ef3533
--- a/main.cpp Sun May 17 10:34:33 2020 +0000 +++ b/main.cpp Mon May 18 10:43:10 2020 +0000 @@ -1,14 +1,15 @@ #include "mbed.h" #include "KeyboardTsLcd.h" #include "Led_Lcd.h" +#include "Keyboard_Ts.h" int main(){ KeyboardTsLcd Keyboard(0); LedLcd Led(2); while(1){ - Keyboard.eRead(); - switch(Keyboard.eRead()){ + enum KeyboardState eBtn = Keyboard.eRead(); + switch(eBtn){ case BUTTON_0: Led.On(3); break; @@ -25,7 +26,7 @@ Led.On(4); break; } - //wait(0.1); + wait(0.1); } }