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-21
- Revision:
- 3:e05d4de7690b
- Parent:
- 2:8c5c47b2372d
- Child:
- 5:158e2951654b
File content as of revision 3:e05d4de7690b:
#include "mbed.h" #include "N5110.h" #include "Bitmap.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); game.update(pad, pc, lcd); game.draw(lcd); wait(1.0f/10); // 10 fps } }