It is not the final edition
Dependencies: mbed
main.cpp
- Committer:
- yangzhenye
- Date:
- 2020-05-08
- Revision:
- 3:30c81344beff
- Child:
- 4:eb8dca1dc341
File content as of revision 3:30c81344beff:
#include "mbed.h" #include "Gamepad.h" #include "N5110.h" #include "Menu.h" // objects Gamepad gamepad; N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Menu _menu; int main() { gamepad.init(); _menu.init(); lcd.init(); lcd.normalMode(); lcd.setBrightness(0.5); while(1) { lcd.clear(); _menu.run(lcd, gamepad); lcd.refresh(); wait(0.01); } }