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
Diff: main.cpp
- Revision:
- 2:360a6c301a4e
- Parent:
- 1:0001cb3eb053
- Child:
- 3:116913e97fd7
--- a/main.cpp Tue Apr 09 20:15:33 2019 +0000 +++ b/main.cpp Wed Apr 10 17:34:02 2019 +0000 @@ -1,7 +1,7 @@ #include "mbed.h" #include "Gamepad.h" #include "N5110.h" -#include "Floors.h" +#include "Engine.h" #define FLOORS_WIDTH 2 #define FLOORS_HEIGHT 10 @@ -9,7 +9,7 @@ // objects N5110 lcd(PTC5,PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); // START, LCD SCE, LCD RST, LCD DC, LCD MOSI, LCD CLK, LCD Backlight Gamepad pad; -Floors fls; +Engine eng; // prototypes void init(); @@ -33,7 +33,7 @@ // need to initialise LCD and Gamepad lcd.init(); pad.init(); - fls.init(FLOORS_HEIGHT, FLOORS_WIDTH); + eng.init(FLOORS_HEIGHT, FLOORS_WIDTH); } // Starting menu screen display @@ -45,6 +45,6 @@ void draw(){ lcd.clear(); - fls.draw(lcd); + eng.draw(lcd); lcd.refresh(); } \ No newline at end of file