Hu Dongyu
/
HuDongyu
publish my project
Me/Me.h
- Committer:
- dongyuhu
- Date:
- 2020-04-29
- Revision:
- 7:4b92c1ee6231
- Parent:
- 6:49e77bcc975c
File content as of revision 7:4b92c1ee6231:
#ifndef ME_H #define ME_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" //head file referenced from ball.h in Pong Example /** Me Class * @brief Me * @author dongyuhu * @date April, 2020 */ class Me { public: /** Constructor */ Me(); /** Destructor */ ~Me(); /** Initialization */ void init(int x,int y,int height,int width); /** draw pattern on lcd*/ void draw(N5110 &lcd); /** Update the values */ void update(Direction d); /** Get the position */ Vector2D get_pos(); private: int _height; //3 The colltroller is 3 by 3 int _width; //3 int _x; int _y; int _speed; }; #endif