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:
- 9:dc13042b09f5
- Parent:
- 8:b3738229ba85
- Child:
- 10:b939edd9b87c
--- 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