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@20:a3fd428fb4f4, 2018-04-28 (annotated)
- Committer:
- RickYu
- Date:
- Sat Apr 28 23:32:23 2018 +0000
- Revision:
- 20:a3fd428fb4f4
- Parent:
- 19:362ad1cd6d4a
- Child:
- 21:f48e269bafa4
draw a arrow to choose the help model and game model, while failed.; the screen cannot show the help and game, until press start
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 | 19:362ad1cd6d4a | 20 | |
| RickYu | 19:362ad1cd6d4a | 21 | |
| RickYu | 19:362ad1cd6d4a | 22 | |
| RickYu | 19:362ad1cd6d4a | 23 | private: |
| RickYu | 19:362ad1cd6d4a | 24 | |
| RickYu | 19:362ad1cd6d4a | 25 | int arrow_x; |
| RickYu | 19:362ad1cd6d4a | 26 | int arrow_y; |
| RickYu | 20:a3fd428fb4f4 | 27 | int arrow_speed; |
| RickYu | 20:a3fd428fb4f4 | 28 | |
| RickYu | 20:a3fd428fb4f4 | 29 | Direction _d; |
| RickYu | 20:a3fd428fb4f4 | 30 | float _mag; |
| RickYu | 19:362ad1cd6d4a | 31 | }; |
| RickYu | 19:362ad1cd6d4a | 32 | |
| RickYu | 19:362ad1cd6d4a | 33 | |
| RickYu | 19:362ad1cd6d4a | 34 | #endif |