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.
Diff: main.cpp
- Revision:
- 7:68e06dda79f7
- Parent:
- 6:2ca1516ec1e2
- Child:
- 8:21b6d4dbce44
--- a/main.cpp Wed Apr 10 11:03:07 2019 +0000
+++ b/main.cpp Wed Apr 17 12:39:46 2019 +0000
@@ -32,7 +32,7 @@
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Gamepad pad;
Game game;
-Music player;
+Music play;
@@ -50,9 +50,8 @@
lcd.setContrast(0.4);
pad.init();
processedTime.reset();
-
-
- player.init(data1,NUM_ELEMENTS);
+ game.init();
+ play.init(data1,NUM_ELEMENTS);
@@ -91,10 +90,13 @@
// game loop - read input, update the game state and render the display
+
+ game.init();
while (1) {
processedTime.start();
printf("TIME: %i\n",processedTime.read_ms());
-//
+
+
game.read_input(pad);
game.update(pad);
game.draw(lcd);