![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Stick_Runner
Dependencies: FXOS8700CQ Gamepad N5110 SDFileSystem mbed
Diff: main.cpp
- Revision:
- 4:2fdafb53eac2
- Parent:
- 3:0c690f1c04d8
- Child:
- 5:1bf7c83f86cc
--- a/main.cpp Wed May 03 09:27:04 2017 +0000 +++ b/main.cpp Wed May 03 18:00:37 2017 +0000 @@ -331,10 +331,11 @@ void over() { //pad.tone(1000.0,0.5); pad.init(); + // lcd.init(); // lcd.clear(); //Mounting on the SD card to read/write in it - sd.mount(); + //sd.mount(); //Converting the counter into a string 'score' to display on the lcd sprintf (score, " Score : %d",counter); @@ -344,7 +345,7 @@ //lcd.printString(" ",0,1); //Opening file on the SD card - file = fopen("/sd/scoreFile.txt", "r"); + /*file = fopen("/sd/scoreFile.txt", "r"); //If file is empty and score to it and display it as the High Score if(file ==NULL) @@ -370,13 +371,13 @@ lcd.printString("HIGH SCORE",0,3); } - } + }*/ - lcd.printString(" PRESS START ",0,4); + lcd.printString(" PRESS START ",0,5); lcd.refresh(); - sd.unmount(); + //sd.unmount(); //Takes the user back to the main for a new game while ( pad.check_event(Gamepad::START_PRESSED) == false) {