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@25:1d91ab97d86a, 2018-04-30 (annotated)
- Committer:
- RickYu
- Date:
- Mon Apr 30 18:07:51 2018 +0000
- Revision:
- 25:1d91ab97d86a
- Parent:
- 23:f433f8d8698e
rect cannot moves, might some words are deleted.; save this one for revision;
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 | #include "mbed.h" |
| RickYu | 19:362ad1cd6d4a | 4 | #include "N5110.h" |
| RickYu | 19:362ad1cd6d4a | 5 | #include "Gamepad.h" |
| RickYu | 19:362ad1cd6d4a | 6 | |
| RickYu | 19:362ad1cd6d4a | 7 | |
| RickYu | 19:362ad1cd6d4a | 8 | class help{ |
| RickYu | 19:362ad1cd6d4a | 9 | |
| RickYu | 19:362ad1cd6d4a | 10 | public: |
| RickYu | 19:362ad1cd6d4a | 11 | help(); |
| RickYu | 19:362ad1cd6d4a | 12 | ~help(); |
| RickYu | 25:1d91ab97d86a | 13 | |
| RickYu | 25:1d91ab97d86a | 14 | void draw_arrow(N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 15 | void update(Gamepad &pad,N5110 &lcd); //switch between "game" and "help" |
| RickYu | 19:362ad1cd6d4a | 16 | |
| RickYu | 25:1d91ab97d86a | 17 | //move the page in "help" model |
| RickYu | 25:1d91ab97d86a | 18 | void page_on(Gamepad &pad,N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 19 | void page_back(Gamepad &pad,N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 20 | |
| RickYu | 25:1d91ab97d86a | 21 | //draw two models |
| RickYu | 25:1d91ab97d86a | 22 | void model_1(Gamepad &pad,N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 23 | void model_2(Gamepad &pad,N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 24 | |
| RickYu | 25:1d91ab97d86a | 25 | //write the help and introduction |
| RickYu | 21:f48e269bafa4 | 26 | void statement1(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 27 | void statement2(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 28 | void statement3(N5110 &lcd); |
| RickYu | 25:1d91ab97d86a | 29 | void piggy_page(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 30 | |
| RickYu | 25:1d91ab97d86a | 31 | |
| RickYu | 19:362ad1cd6d4a | 32 | private: |
| RickYu | 19:362ad1cd6d4a | 33 | |
| RickYu | 19:362ad1cd6d4a | 34 | int arrow_x; |
| RickYu | 19:362ad1cd6d4a | 35 | int arrow_y; |
| RickYu | 20:a3fd428fb4f4 | 36 | int arrow_speed; |
| RickYu | 22:c1e1283c6356 | 37 | int choice; |
| RickYu | 22:c1e1283c6356 | 38 | int page; |
| RickYu | 25:1d91ab97d86a | 39 | }; |
| RickYu | 19:362ad1cd6d4a | 40 | #endif |