Yuheng Huo / Mbed 2 deprecated hyh_copy_copy

Dependencies:   mbed FXOS8700CQ

chara.h

Committer:
Neowless
Date:
2020-05-15
Revision:
2:cc9d8ec2e1f4
Parent:
plane.h@ 1:48b0bf0bcda8

File content as of revision 2:cc9d8ec2e1f4:

#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:
    void init();
    void update(Gamepad &pad, FXOS8700CQ &device);
    void display(N5110 &lcd);
    xy getxy();
    int getwidth();
    int getheight();
    
    private:
    int _height;
    int _width;
    int data[56];
    xy _xy;
    
};
#endif