
AGH UST mbed part 3
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- matis755
- Date:
- 2020-05-23
- Revision:
- 2:db40a2b0b177
- Parent:
- 1:36b3fd4a01fd
- Child:
- 4:459a0389bb9f
File content as of revision 2:db40a2b0b177:
#include "KeyboardLed.h" #include "LCD_DISCO_F429ZI.h" LCD_DISCO_F429ZI Lcd; int main() { KeyboardLed Keyboard(0); Ledboard Led(2); while(1) { switch(Keyboard.eRead()) { case BUTTON_0: Led.On(3); break; case BUTTON_1: Led.On(2); break; case BUTTON_2: Led.On(1); break; case BUTTON_3: Led.On(0); break; default : Led.Off(); break; } wait(0.1); } }