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
help/help.h
- Committer:
- RickYu
- Date:
- 2018-04-30
- Revision:
- 27:eab2cf10554e
- Parent:
- 26:6a1476a0bba9
- Child:
- 30:057301068dac
File content as of revision 27:eab2cf10554e:
#ifndef HELP_H
#define HELP_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class help{
public:
help();
~help();
void draw_arrow(N5110 &lcd);
void update(Gamepad &pad,N5110 &lcd); //switch between "game" and "help"
//move the page in "help" model
void page_on(Gamepad &pad,N5110 &lcd);
void page_back(Gamepad &pad,N5110 &lcd);
//draw two models
void model_1(Gamepad &pad,N5110 &lcd);
void model_2(Gamepad &pad,N5110 &lcd);
//write the help and introduction
void statement1(N5110 &lcd);
void statement2(N5110 &lcd);
void statement3(N5110 &lcd);
void piggy_page(N5110 &lcd);
private:
int arrow_x;
int arrow_y;
int arrow_speed;
int choice;
int page;
};
#endif