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
menu/Menu.h
- Committer:
- el18jgb
- Date:
- 2020-05-21
- Revision:
- 19:33c77517cb88
- Parent:
- 16:7c612029d9c9
- Child:
- 21:a0f3651f56c4
File content as of revision 19:33c77517cb88:
#ifndef MENU_H
#define MENU_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Highscore.h"
/** menu Class
@date april 2020
*/
class Menu
{
public:
Menu();
~Menu();
void init();
void display(N5110 &lcd, Gamepad &pad);
void draw(N5110 &lcd);
void update(Gamepad &pad);
void instructions(N5110 &lcd, Gamepad &pad);
void highs_screen(N5110 &lcd, Gamepad &pad, Highscore &hs, SDFileSystem &sd);
int getmode();
private:
int option;
int _height;
int _width;
int _x;
int _y;
};
#endif