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@21:f48e269bafa4, 2018-04-29 (annotated)
- Committer:
- RickYu
- Date:
- Sun Apr 29 23:41:03 2018 +0000
- Revision:
- 21:f48e269bafa4
- Parent:
- 20:a3fd428fb4f4
- Child:
- 22:c1e1283c6356
complter the help model, some button setting need to be checke;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| RickYu | 20:a3fd428fb4f4 | 1 | #ifndef HELP_H |
| RickYu | 19:362ad1cd6d4a | 2 | #define HELP_H |
| RickYu | 19:362ad1cd6d4a | 3 | |
| RickYu | 19:362ad1cd6d4a | 4 | #include "mbed.h" |
| RickYu | 19:362ad1cd6d4a | 5 | #include "N5110.h" |
| RickYu | 19:362ad1cd6d4a | 6 | #include "Gamepad.h" |
| RickYu | 19:362ad1cd6d4a | 7 | |
| RickYu | 19:362ad1cd6d4a | 8 | |
| RickYu | 19:362ad1cd6d4a | 9 | class help{ |
| RickYu | 19:362ad1cd6d4a | 10 | |
| RickYu | 19:362ad1cd6d4a | 11 | public: |
| RickYu | 19:362ad1cd6d4a | 12 | help(); |
| RickYu | 19:362ad1cd6d4a | 13 | ~help(); |
| RickYu | 19:362ad1cd6d4a | 14 | |
| RickYu | 19:362ad1cd6d4a | 15 | void welcome(Gamepad &pad,N5110 &lcd); |
| RickYu | 19:362ad1cd6d4a | 16 | void draw(N5110 &lcd); |
| RickYu | 20:a3fd428fb4f4 | 17 | void update(Direction d,float mag,Gamepad &pad,N5110 &lcd); |
| RickYu | 20:a3fd428fb4f4 | 18 | void init(int x,int y); |
| RickYu | 20:a3fd428fb4f4 | 19 | void read_input(Gamepad &pad); |
| RickYu | 21:f48e269bafa4 | 20 | void statement1(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 21 | void statement2(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 22 | void statement3(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 23 | |
| RickYu | 19:362ad1cd6d4a | 24 | |
| RickYu | 19:362ad1cd6d4a | 25 | |
| RickYu | 19:362ad1cd6d4a | 26 | |
| RickYu | 19:362ad1cd6d4a | 27 | private: |
| RickYu | 19:362ad1cd6d4a | 28 | |
| RickYu | 19:362ad1cd6d4a | 29 | int arrow_x; |
| RickYu | 19:362ad1cd6d4a | 30 | int arrow_y; |
| RickYu | 20:a3fd428fb4f4 | 31 | int arrow_speed; |
| RickYu | 20:a3fd428fb4f4 | 32 | |
| RickYu | 20:a3fd428fb4f4 | 33 | Direction _d; |
| RickYu | 20:a3fd428fb4f4 | 34 | float _mag; |
| RickYu | 21:f48e269bafa4 | 35 | |
| RickYu | 21:f48e269bafa4 | 36 | int sb; |
| RickYu | 21:f48e269bafa4 | 37 | int page; |
| RickYu | 19:362ad1cd6d4a | 38 | }; |
| RickYu | 19:362ad1cd6d4a | 39 | |
| RickYu | 19:362ad1cd6d4a | 40 | |
| RickYu | 19:362ad1cd6d4a | 41 | #endif |