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:
- 11:cb48d596aa3e
- Parent:
- 10:3af708f38a42
- Child:
- 12:4d7f1349d796
--- a/main.cpp Thu May 03 12:07:54 2018 +0000 +++ b/main.cpp Thu May 03 22:34:03 2018 +0000 @@ -14,6 +14,7 @@ #include "Gamepad.h" #include "N5110.h" #include "GameEngine.h" + /////////////// objects /////////////// N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad g_pad; @@ -57,7 +58,8 @@ g_pad.led(4, 2); g_pad.led(3, 0); g_pad.led(6, 0); - // sleep(); + + //sleep(); if(g_pad.check_event(Gamepad::START_PRESSED) == true){ sleep=0; break; @@ -94,8 +96,8 @@ void welcome() { - lcd.printString(" Rocket! ",0,1); - lcd.printString(" Press Start ",0,4); + lcd.printString(" Rocket! ",0,1); + lcd.printString(" Press Start ",0,4); lcd.refresh(); //flashing LEDs until start button is pressed @@ -113,6 +115,7 @@ lcd.printString(" Game Over!! ",0,1); lcd.printString(" Try again ",0,3); lcd.printString(" 'reset' ",0,5); + //game.print_sec_over(lcd); lcd.refresh(); }