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:
- 2:baca89f466bc
- Child:
- 3:30c81344beff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menu/Menu.h Thu Apr 30 07:08:09 2020 +0000
@@ -0,0 +1,31 @@
+#ifndef MENU_H
+#define MENU_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Engine.h"
+
+struct State {
+ int output;
+ int next_state[4]; }
+
+class Menu {
+ public:
+ Menu();
+ ~Menu();
+ void init();
+ void run(N5110 &lcd, Gamepad &gamepad);
+
+ private:
+ void dispaly_page1();
+ void display_page2();
+ void display_page3();
+ void output();
+ void input(bool start, bool back, bool x);
+ int _output;
+ int _state;
+ int _input;
+ };
+ #endif
+
\ No newline at end of file