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: ModeA/ModeA.cpp
- Revision:
 - 13:349a682c0c4e
 - Parent:
 - 12:343704be6401
 
diff -r 343704be6401 -r 349a682c0c4e ModeA/ModeA.cpp
--- a/ModeA/ModeA.cpp	Thu May 09 01:26:47 2019 +0000
+++ b/ModeA/ModeA.cpp	Thu May 09 01:41:26 2019 +0000
@@ -45,9 +45,7 @@
 void ModeA::Bird(N5110 &lcd)
 
 {
-    char buffer[14];
-    sprintf(buffer,"%2d",score);
-    lcd.printString(buffer,70,0);
+
     lcd.drawRect(x_position, y_position,6,6,FILL_BLACK);
     lcd.refresh();
 
@@ -86,11 +84,7 @@
     lcd.drawRect(screen_width,48-size_bottom,bar_width,size_bottom,FILL_BLACK);
     lcd.refresh();
 
-    if ((screen_width ==  x_position)&& (size_top <  y_position)) {
-        score = score + 1;
-        lcd.clear();
-        sprintf(buffer,"%2d",score);
-    }
+  
 
     if ( pad.check_event(Gamepad::X_PRESSED) == true) {
         srand(time(NULL));