
aghmtmppo
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- domino5740
- Date:
- 2020-06-15
- Revision:
- 0:b7f6cb529d74
File content as of revision 0:b7f6cb529d74:
#include "mbed.h" #include "Keyboard_Led.h" #include "Led_Board.h" #include "LCD_DISCO_F429ZI.h" LCD_DISCO_F429ZI lcd; int main() { KeyboardLed Keyboard(0); LedBoard *pLedBoard; pLedBoard = new LedBoard(2); while(1) { switch(Keyboard.eRead()) { case BUTTON_0: pLedBoard -> On(3); break; case BUTTON_1: pLedBoard -> On(2); break; case BUTTON_2: pLedBoard -> On(1); break; case BUTTON_3: pLedBoard -> On(0); break; default: pLedBoard -> Off(); break; } wait(0.1); } }