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: menu/Menu.cpp
- Revision:
- 19:33c77517cb88
- Parent:
- 16:7c612029d9c9
- Child:
- 21:a0f3651f56c4
--- a/menu/Menu.cpp Wed May 20 14:37:02 2020 +0000
+++ b/menu/Menu.cpp Thu May 21 13:54:14 2020 +0000
@@ -126,3 +126,24 @@
{
return option;
}
+
+void Menu::highs_screen(N5110 &lcd, Gamepad &pad, Highscore &hs, SDFileSystem &sd)
+{
+ //int value = hs.geths();
+ while ( pad.B_held() == false) {
+ lcd.clear();
+
+ int value = hs.geths(sd);
+ //printf("value %d \n", value);
+ lcd.printString(" Highscore ",0,0);
+
+ char buffer1[14];
+ sprintf(buffer1,"%2d",value);
+ lcd.printString(buffer1,34,3); // font is 8 wide, so leave 4 pixel gape from middle assuming two digits
+
+ lcd.printString("return press B",0,5);
+
+ lcd.refresh();
+ }
+ wait(0.1);
+}