ELEC2645 (2018/19) / Mbed 2 deprecated el17dtt

Dependencies:   mbed

Revision:
9:dc13042b09f5
Parent:
8:b3738229ba85
Child:
10:b939edd9b87c
diff -r b3738229ba85 -r dc13042b09f5 main.cpp
--- a/main.cpp	Sat May 04 22:46:31 2019 +0000
+++ b/main.cpp	Sun May 05 23:31:07 2019 +0000
@@ -35,16 +35,15 @@
 ///////////// functions ////////////////
 int main() {
     
-    int fps = 8;  // frames per second
+    int fps = 10;  // frames per second
     
     init();
     
     welcome();
-    
     // game loop - read input, update the game state and render the display
     while(1) {
         // engine.read_input(gamepad);
-        engine.update(gamepad, lcd);
+        engine.update(gamepad, lcd, 1.0f/fps);
         render();
         wait(1.0f/fps);
     }
@@ -77,7 +76,7 @@
 // this function draws each frame on the LCD
 void render() {
     
-        lcd.clear();
+        //lcd.clear();
         //engine.draw(lcd);
-        lcd.refresh();
+        //lcd.refresh();
 }
\ No newline at end of file