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: Menus/Menus.h
- Revision:
- 15:fa5282fcd134
- Child:
- 16:a2c945279b79
diff -r fe2e16cdf219 -r fa5282fcd134 Menus/Menus.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menus/Menus.h Fri Apr 19 15:58:51 2019 +0000
@@ -0,0 +1,36 @@
+#ifndef MENUS
+#define MENUS
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Graphics.h"
+
+class Menus
+{
+public:
+
+ Menus();
+ ~Menus();
+ void start_up_screen(Graphics &graphics, N5110 &lcd, Gamepad &pad);
+ void main_menu(Graphics &graphics, N5110 &lcd, Gamepad &pad);
+ bool get_mute();
+ int get_lives();
+
+private:
+
+ void _start_up_visuals(Graphics &graphics, N5110 &lcd, Gamepad &pad);
+ void _read_inputs(Gamepad &pad);
+ void _controls(N5110 &lcd, Gamepad &pad);
+ void _scores(N5110 &lcd, Gamepad &pad);
+ void _settings(N5110 &lcd, Gamepad &pad);
+ void _mute_contrast(N5110 &lcd, Gamepad &pad);
+
+ int _counter;
+ int _lives;
+ bool _mute;
+ float _contrast;
+ float _score;
+};
+
+#endif // MENUS
\ No newline at end of file