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.h
- Revision:
- 4:2deeeeb6c1e1
- Child:
- 6:4c55dd4b6d42
diff -r f686f6d7bdff -r 2deeeeb6c1e1 Menu/menu.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menu/menu.h Wed Apr 10 21:35:21 2019 +0000
@@ -0,0 +1,43 @@
+//#ifndef MENU_H
+//#define MENU_H
+#include <string>
+
+// star struct needed for the falling number screen flush
+struct symbol
+{
+ //coords of a symbol and its distance
+ int x,y,distance;
+};
+
+class Menu {
+
+ // public part of the class definition
+ public:
+ // intro for the welcome function
+ void intro(N5110 &lcd);
+
+ // run a short story mode
+ void story(N5110 &lcd);
+
+ // start the main menu and display options
+ void startMainMenu(N5110 &lcd);
+
+ // draw the different sectors of the menu
+ void drawSelections();
+
+ // method to draw some of the strings, made on paint
+ void drawLogo(N5110 &lcd, string name);
+
+ // falling numbers screen flush
+ void numberFall(N5110 &lcd);
+
+ // private part of the class definition
+ private:
+
+ int number_of_sprites;
+ static int logo0[];
+ static int logo1[];
+
+};
+
+//#endif
\ No newline at end of file