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: help/help.h
- Revision:
- 26:6a1476a0bba9
- Parent:
- 23:f433f8d8698e
- Child:
- 27:eab2cf10554e
--- a/help/help.h Mon Apr 30 01:14:21 2018 +0000
+++ b/help/help.h Mon Apr 30 19:12:41 2018 +0000
@@ -1,6 +1,7 @@
+
+
#ifndef HELP_H
#define HELP_H
-
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
@@ -11,24 +12,25 @@
public:
help();
~help();
+
+ void draw_arrow(N5110 &lcd);
+ void update(Gamepad &pad,N5110 &lcd); //switch between "game" and "help"
- void welcome(Gamepad &pad,N5110 &lcd);
- void draw(N5110 &lcd);
- void update(Direction d,float mag,Gamepad &pad,N5110 &lcd);
- void read_input(Gamepad &pad);
+ //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 statement4(N5110 &lcd);
+ void piggy_page(N5110 &lcd);
- void page_on(Gamepad &pad,N5110 &lcd);
- void page_back(Gamepad &pad,N5110 &lcd);
- void model_1(Gamepad &pad,N5110 &lcd);
- void model_2(Gamepad &pad,N5110 &lcd);
-
-
-
-
+
private:
int arrow_x;
@@ -36,7 +38,5 @@
int arrow_speed;
int choice;
int page;
-};
-
-
-#endif
\ No newline at end of file
+};
+#endif