Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- el15as
- Date:
- 2017-04-30
- Revision:
- 5:158e2951654b
- Parent:
- 3:e05d4de7690b
- Child:
- 6:33fd1797beb4
File content as of revision 5:158e2951654b:
#include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" #include "GameEngine.h" N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Serial pc(USBTX, USBRX); // tx, rx Gamepad pad; GameEngine game; Player player; void update_screen(); int main() { lcd.init(); pad.init(); lcd.normalMode(); lcd.setBrightness(1); game.init(1); lcd.refresh(); while(1) { // loop forever game.read_input(pad,pc); game.update(pad, pc, lcd); game.draw(lcd); wait(1.0f/10); // 10 fps } }