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:
- 8:f305ea78b2b1
- Child:
- 13:27300c533dd1
diff -r 33cb5f2db1ee -r f305ea78b2b1 Menu/Menu.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menu/Menu.h Tue May 05 16:46:01 2020 +0000
@@ -0,0 +1,57 @@
+#ifndef MENU_H
+#define MENU_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Front.h"
+
+/** Menu class
+ * @author Luke Cartwright, University of Leeds
+ * @brief manages all menu selection and movement
+ * @date May 2020
+*/
+
+class Menu
+{
+public://-----------------------------------------------------------------------
+ //variables
+
+ //methods
+ //constructor
+ Menu();
+
+ //destructior
+ ~Menu();
+
+ //runs main menu code
+ void mainmenu(N5110 &lcd, Gamepad &pad);
+
+ //sub menus
+ void subwaveforms(N5110 &lcd, Gamepad &pad, int submenu);
+ void subinstructions(N5110 &lcd, Gamepad &pad);
+ void subcredits(N5110 &lcd, Gamepad &pad);
+ int scroll(N5110 &lcd, Gamepad &pad);
+
+private: //---------------------------------------------------------------------
+ //variables
+ int menuflag;
+ int g_selecty;
+ int submenu;
+ int menusize;
+ enum d;
+ int s;
+
+
+ //Methods
+ void printmainmenu(N5110 &lcd); //prints menu
+ void printsubwaveforms(N5110 &lcd); //prints subwaveforms menu
+ void subunavailiable(N5110 &lcd); //prints error for sub
+ int scroll_check(Gamepad &pad);
+
+
+
+
+};
+
+#endif
\ No newline at end of file