test

Dependencies:   mbed FXOS8700CQ

Committer:
Neowless
Date:
Fri May 15 20:36:00 2020 +0000
Revision:
4:c7dc43515215
Parent:
3:31ff7b3e2005
test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Neowless 3:31ff7b3e2005 1 /** My Life Class
Neowless 3:31ff7b3e2005 2 * @describe the characteristic
Neowless 3:31ff7b3e2005 3 * @author Huo Yuheng
Neowless 3:31ff7b3e2005 4 * @date May, 2020
Neowless 3:31ff7b3e2005 5 */
Neowless 3:31ff7b3e2005 6 #ifndef CHARA_H
Neowless 3:31ff7b3e2005 7 #define CHARA_H
Neowless 3:31ff7b3e2005 8
Neowless 3:31ff7b3e2005 9 #include "Bitmap.h"
Neowless 3:31ff7b3e2005 10 #include "N5110.h"
Neowless 3:31ff7b3e2005 11 #include "Gamepad.h"
Neowless 3:31ff7b3e2005 12 #include "mbed.h"
Neowless 3:31ff7b3e2005 13 #include "FXOS8700CQ.h"
Neowless 3:31ff7b3e2005 14
Neowless 3:31ff7b3e2005 15
Neowless 3:31ff7b3e2005 16 struct xy{
Neowless 3:31ff7b3e2005 17 int x;
Neowless 3:31ff7b3e2005 18 int y;
Neowless 3:31ff7b3e2005 19 };
Neowless 3:31ff7b3e2005 20
Neowless 3:31ff7b3e2005 21 class chara{
Neowless 3:31ff7b3e2005 22 public:
Neowless 3:31ff7b3e2005 23 /** initialize the function */
Neowless 3:31ff7b3e2005 24 void init();
Neowless 3:31ff7b3e2005 25 /** change the position */
Neowless 3:31ff7b3e2005 26 void update(Gamepad &pad, FXOS8700CQ &device);
Neowless 3:31ff7b3e2005 27 /** draw the charachteristic*/
Neowless 3:31ff7b3e2005 28 void display(N5110 &lcd);
Neowless 3:31ff7b3e2005 29 /** get the postion */
Neowless 3:31ff7b3e2005 30 xy getxy();
Neowless 3:31ff7b3e2005 31 private:
Neowless 3:31ff7b3e2005 32 /** bitmap */
Neowless 3:31ff7b3e2005 33 int data[56];
Neowless 3:31ff7b3e2005 34 /** posotion */
Neowless 3:31ff7b3e2005 35 xy _xy;
Neowless 3:31ff7b3e2005 36
Neowless 3:31ff7b3e2005 37 };
Neowless 3:31ff7b3e2005 38 #endif
Neowless 3:31ff7b3e2005 39