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
Menus/Menus.h
- Committer:
- el17mcd
- Date:
- 2019-04-19
- Revision:
- 15:fa5282fcd134
- Child:
- 16:a2c945279b79
File content as of revision 15:fa5282fcd134:
#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