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@27:eab2cf10554e, 2018-04-30 (annotated)
- Committer:
- RickYu
- Date:
- Mon Apr 30 20:29:26 2018 +0000
- Revision:
- 27:eab2cf10554e
- Parent:
- 26:6a1476a0bba9
- Child:
- 30:057301068dac
wriitten all the comments
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 | 26:6a1476a0bba9 | 13 | |
| RickYu | 26:6a1476a0bba9 | 14 | void draw_arrow(N5110 &lcd); |
| RickYu | 26:6a1476a0bba9 | 15 | void update(Gamepad &pad,N5110 &lcd); //switch between "game" and "help" |
| RickYu | 19:362ad1cd6d4a | 16 | |
| RickYu | 26:6a1476a0bba9 | 17 | //move the page in "help" model |
| RickYu | 26:6a1476a0bba9 | 18 | void page_on(Gamepad &pad,N5110 &lcd); |
| RickYu | 26:6a1476a0bba9 | 19 | void page_back(Gamepad &pad,N5110 &lcd); |
| RickYu | 26:6a1476a0bba9 | 20 | |
| RickYu | 26:6a1476a0bba9 | 21 | //draw two models |
| RickYu | 26:6a1476a0bba9 | 22 | void model_1(Gamepad &pad,N5110 &lcd); |
| RickYu | 26:6a1476a0bba9 | 23 | void model_2(Gamepad &pad,N5110 &lcd); |
| RickYu | 26:6a1476a0bba9 | 24 | |
| RickYu | 26:6a1476a0bba9 | 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 | 26:6a1476a0bba9 | 29 | void piggy_page(N5110 &lcd); |
| RickYu | 21:f48e269bafa4 | 30 | |
| RickYu | 26:6a1476a0bba9 | 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 | 26:6a1476a0bba9 | 39 | }; |
| RickYu | 26:6a1476a0bba9 | 40 | #endif |