Albert Tan-Mulligan
/
ELEC2645_Project_el18ajst
Diff: main.cpp
- Revision:
- 24:19994f789276
- Parent:
- 17:c81c09625d92
--- a/main.cpp Tue May 26 23:41:09 2020 +0000 +++ b/main.cpp Wed May 27 00:57:33 2020 +0000 @@ -10,7 +10,7 @@ Date:10/4/2020 */ -// includes +// INCLUDES #include "mbed.h" #include "Gamepad.h" #include "N5110.h" @@ -68,7 +68,7 @@ //FUNCTIONS int main() //pc.printf("Main Open"); { - pad.init(); //initial setups + pad.init(); //initial setups lcd.init(); lcd.clear(); //pc.printf("CoolTerm is Connected\n"); @@ -191,7 +191,7 @@ lcd.clear(); lcd.printString("YOU DIED",18,1); char buffer[14]; - if(score > 10) { //score displays differently if below 10 to make sure the text is centered + if(score >= 10) { //score displays differently if below 10 to make sure the text is centered sprintf(buffer, " Score:%d", score); lcd.printString(buffer,0,2); } else {