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:
- lewisgw
- Date:
- 2019-03-24
- Revision:
- 9:fff2009f826e
- Parent:
- 8:5327418f823a
- Child:
- 12:ebaefda53dd0
File content as of revision 9:fff2009f826e:
/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds Name: Lewis Wooltorton Username: el17lw Student ID Number: 201122085 Date: March 2019 */ #include "N5110.h" #include "Gamepad.h" #include "Menu.h" #include "mbed.h" N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad gamepad; Menu menu; void init_game(); void run_game(); int main() { init_game(); while(1) { lcd.clear(); run_game(); lcd.refresh(); wait(0.01); } } void init_game() { gamepad.init(); menu.init(); lcd.init(); lcd.setContrast(0.5); lcd.normalMode(); lcd.setBrightness(0.5); } void run_game() { menu.run_game_engine(lcd, gamepad); }