Yuheng Huo / Mbed 2 deprecated hyh_copy

Dependencies:   mbed FXOS8700CQ

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers chara.h Source File

chara.h

00001 /** My Life Class
00002 * @describe the characteristic
00003 * @author Huo Yuheng
00004 * @date May, 2020
00005 */
00006 #ifndef CHARA_H
00007 #define CHARA_H
00008 
00009 #include "Bitmap.h"
00010 #include "N5110.h"
00011 #include "Gamepad.h"
00012 #include "mbed.h"
00013 #include "FXOS8700CQ.h"
00014 
00015 
00016 struct xy{
00017     int x;
00018     int y;
00019 };
00020 
00021 class chara{
00022     public:
00023     /** initialize the function */
00024     void init();
00025     /** change the position */
00026     void update(Gamepad &pad, FXOS8700CQ &device);
00027     /** draw the charachteristic*/
00028     void display(N5110 &lcd);
00029     /** get the postion */
00030     xy getxy();
00031     private:
00032     /** bitmap */
00033     int data[56];
00034     /** posotion */
00035     xy _xy;
00036     
00037 };
00038 #endif
00039