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.
chara.h@2:cc9d8ec2e1f4, 2020-05-15 (annotated)
- Committer:
- Neowless
- Date:
- Fri May 15 17:44:25 2020 +0000
- Revision:
- 2:cc9d8ec2e1f4
- Parent:
- plane.h@1:48b0bf0bcda8
test;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Neowless | 2:cc9d8ec2e1f4 | 1 | #ifndef CHARA_H |
| Neowless | 2:cc9d8ec2e1f4 | 2 | #define CHARA_H |
| Neowless | 1:48b0bf0bcda8 | 3 | |
| Neowless | 1:48b0bf0bcda8 | 4 | #include "Bitmap.h" |
| Neowless | 1:48b0bf0bcda8 | 5 | #include "N5110.h" |
| Neowless | 1:48b0bf0bcda8 | 6 | #include "Gamepad.h" |
| Neowless | 1:48b0bf0bcda8 | 7 | #include "mbed.h" |
| Neowless | 1:48b0bf0bcda8 | 8 | #include "FXOS8700CQ.h" |
| Neowless | 1:48b0bf0bcda8 | 9 | |
| Neowless | 1:48b0bf0bcda8 | 10 | |
| Neowless | 1:48b0bf0bcda8 | 11 | struct xy{ |
| Neowless | 1:48b0bf0bcda8 | 12 | int x; |
| Neowless | 1:48b0bf0bcda8 | 13 | int y; |
| Neowless | 1:48b0bf0bcda8 | 14 | }; |
| Neowless | 1:48b0bf0bcda8 | 15 | |
| Neowless | 2:cc9d8ec2e1f4 | 16 | class chara{ |
| Neowless | 1:48b0bf0bcda8 | 17 | public: |
| Neowless | 1:48b0bf0bcda8 | 18 | void init(); |
| Neowless | 1:48b0bf0bcda8 | 19 | void update(Gamepad &pad, FXOS8700CQ &device); |
| Neowless | 1:48b0bf0bcda8 | 20 | void display(N5110 &lcd); |
| Neowless | 1:48b0bf0bcda8 | 21 | xy getxy(); |
| Neowless | 1:48b0bf0bcda8 | 22 | int getwidth(); |
| Neowless | 1:48b0bf0bcda8 | 23 | int getheight(); |
| Neowless | 1:48b0bf0bcda8 | 24 | |
| Neowless | 1:48b0bf0bcda8 | 25 | private: |
| Neowless | 1:48b0bf0bcda8 | 26 | int _height; |
| Neowless | 1:48b0bf0bcda8 | 27 | int _width; |
| Neowless | 1:48b0bf0bcda8 | 28 | int data[56]; |
| Neowless | 1:48b0bf0bcda8 | 29 | xy _xy; |
| Neowless | 1:48b0bf0bcda8 | 30 | |
| Neowless | 1:48b0bf0bcda8 | 31 | }; |
| Neowless | 1:48b0bf0bcda8 | 32 | #endif |
| Neowless | 1:48b0bf0bcda8 | 33 |