test

Dependencies:   mbed FXOS8700CQ

Revision:
3:31ff7b3e2005
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/chara/chara.h	Fri May 15 20:32:27 2020 +0000
@@ -0,0 +1,39 @@
+/** 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
+