Yuheng Huo
/
hyh_copy_copy
test
chara/chara.h
- Committer:
- Neowless
- Date:
- 2020-05-15
- Revision:
- 4:c7dc43515215
- Parent:
- 3:31ff7b3e2005
File content as of revision 4:c7dc43515215:
/** My Life Class * @describe the characteristic * @author Huo Yuheng * @date May, 2020 */ #ifndef CHARA_H #define CHARA_H #include "Bitmap.h" #include "N5110.h" #include "Gamepad.h" #include "mbed.h" #include "FXOS8700CQ.h" struct xy{ int x; int y; }; class chara{ public: /** initialize the function */ void init(); /** change the position */ void update(Gamepad &pad, FXOS8700CQ &device); /** draw the charachteristic*/ void display(N5110 &lcd); /** get the postion */ xy getxy(); private: /** bitmap */ int data[56]; /** posotion */ xy _xy; }; #endif