
MTM PPO mbed2d-2 program
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- paweler
- Date:
- 2020-06-22
- Revision:
- 2:ce9137eb0655
- Parent:
- 1:3f9eb24c51b2
File content as of revision 2:ce9137eb0655:
#include "mbed.h" #include "KeyboardLed.h" LCD_DISCO_F429ZI lcd; int main() { KeyboardLed TouchKeyboard(0); Ledboard *pLedBoard = new Ledboard(2); while(1) { switch(TouchKeyboard.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); } }