publish my project

Dependencies:   mbed

Committer:
dongyuhu
Date:
Mon Apr 27 07:01:39 2020 +0000
Revision:
2:7d45920b427f
Parent:
0:9e95a5ef2659
Child:
6:49e77bcc975c
Add some refrence

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dongyuhu 0:9e95a5ef2659 1 #ifndef ME_H
dongyuhu 0:9e95a5ef2659 2 #define ME_H
dongyuhu 0:9e95a5ef2659 3
dongyuhu 0:9e95a5ef2659 4
dongyuhu 0:9e95a5ef2659 5 #include "mbed.h"
dongyuhu 0:9e95a5ef2659 6 #include "N5110.h"
dongyuhu 0:9e95a5ef2659 7 #include "Gamepad.h"
dongyuhu 2:7d45920b427f 8 //head file referenced from ball.h in Pong Example
dongyuhu 0:9e95a5ef2659 9 class Me
dongyuhu 0:9e95a5ef2659 10 {
dongyuhu 0:9e95a5ef2659 11 public:
dongyuhu 0:9e95a5ef2659 12
dongyuhu 0:9e95a5ef2659 13 Me();
dongyuhu 0:9e95a5ef2659 14 ~Me();
dongyuhu 0:9e95a5ef2659 15 void init(int x,int y,int height,int width);
dongyuhu 0:9e95a5ef2659 16 void draw(N5110 &lcd);
dongyuhu 0:9e95a5ef2659 17 void update(Direction d);
dongyuhu 0:9e95a5ef2659 18 Vector2D get_pos();
dongyuhu 0:9e95a5ef2659 19
dongyuhu 0:9e95a5ef2659 20 private:
dongyuhu 0:9e95a5ef2659 21
dongyuhu 0:9e95a5ef2659 22 int _height; //3 The colltroller is 3 by 3
dongyuhu 0:9e95a5ef2659 23 int _width; //3
dongyuhu 0:9e95a5ef2659 24 int _x;
dongyuhu 0:9e95a5ef2659 25 int _y;
dongyuhu 0:9e95a5ef2659 26 int _speed;
dongyuhu 0:9e95a5ef2659 27
dongyuhu 0:9e95a5ef2659 28 };
dongyuhu 0:9e95a5ef2659 29 #endif