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.
Instuctions/Instruction.h@12:1dfc34bc8382, 2019-05-05 (annotated)
- Committer:
- ll16o2l
- Date:
- Sun May 05 11:19:38 2019 +0000
- Revision:
- 12:1dfc34bc8382
- Parent:
- 11:1c5c549ba75e
- Child:
- 13:700ea0742b24
Fixed the Instructions, problems with moving the screen up and down.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ll16o2l | 9:99287b26be1e | 1 | #ifndef INSTRUCTION_H |
ll16o2l | 9:99287b26be1e | 2 | #define INSTRUCTION_H |
ll16o2l | 9:99287b26be1e | 3 | |
ll16o2l | 9:99287b26be1e | 4 | #include "mbed.h" |
ll16o2l | 9:99287b26be1e | 5 | #include "N5110.h" |
ll16o2l | 9:99287b26be1e | 6 | #include "Gamepad.h" |
ll16o2l | 9:99287b26be1e | 7 | |
ll16o2l | 9:99287b26be1e | 8 | |
ll16o2l | 9:99287b26be1e | 9 | class Instruction |
ll16o2l | 9:99287b26be1e | 10 | { |
ll16o2l | 9:99287b26be1e | 11 | public: |
ll16o2l | 9:99287b26be1e | 12 | Instruction(); |
ll16o2l | 9:99287b26be1e | 13 | ~Instruction(); |
ll16o2l | 12:1dfc34bc8382 | 14 | void init(); |
ll16o2l | 12:1dfc34bc8382 | 15 | void write(N5110 &lcd); |
ll16o2l | 12:1dfc34bc8382 | 16 | void control(Gamepad &pad); |
ll16o2l | 9:99287b26be1e | 17 | |
ll16o2l | 9:99287b26be1e | 18 | private: |
ll16o2l | 12:1dfc34bc8382 | 19 | Direction d; |
ll16o2l | 9:99287b26be1e | 20 | int y; |
ll16o2l | 11:1c5c549ba75e | 21 | int max_length; |
ll16o2l | 9:99287b26be1e | 22 | |
ll16o2l | 11:1c5c549ba75e | 23 | }; |
ll16o2l | 9:99287b26be1e | 24 | |
ll16o2l | 9:99287b26be1e | 25 | #endif |