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 N5110 ShiftReg Joystick
Diff: Menu.h
- Revision:
- 1:3bdadf6f6dbd
- Parent:
- 0:99b49fd71085
- Child:
- 2:1703eb2a68f8
--- a/Menu.h Tue Apr 13 10:06:02 2021 +0000
+++ b/Menu.h Sat Apr 17 11:38:39 2021 +0000
@@ -8,18 +8,18 @@
{
public:
Menu(); // constructor
- int get_user_input(DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD);
- void select_item(char button);
- void go_back_to_main_menu();
+ void menu_selection(N5110 &lcd, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD); // our case statement
+ int get_user_input(int input, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC, DigitalIn &buttonD);
+ // void select_item(int input);
+ void draw_logo(N5110 &lcd, int x, int y); // draw logo on x y coordinates
// below are the items from the GUI
void main_menu(N5110 &lcd);
- void draw_logo(N5110 &lcd, int x, int y); // draw logo on x y coordinates
void A_to_start(N5110 &lcd);
void created_by(N5110 &lcd);
void homescreen(N5110 &lcd);
void play(N5110 &lcd);
void tutorial(N5110 &lcd);
- void options_menu(N5110 &lcd);
+ void options_menu(N5110 &lcd, DigitalIn &buttonA, DigitalIn &buttonB, DigitalIn &buttonC);
void ingame_options_menu();
void select_map();
};