Yuheng Huo / Mbed 2 deprecated hyh_copy_copy

Dependencies:   mbed FXOS8700CQ

Committer:
Neowless
Date:
Fri May 15 12:32:47 2020 +0000
Revision:
1:48b0bf0bcda8
test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Neowless 1:48b0bf0bcda8 1 #ifndef PLANE_H
Neowless 1:48b0bf0bcda8 2 #define PLANE_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 1:48b0bf0bcda8 16 class plane{
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