ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

GraphicEngine/GraphicEngine.h

Committer:
el19tb
Date:
2020-05-06
Revision:
4:aae7f8d4ab78
Parent:
3:648c9d5001be
Child:
5:6e3afee7eac3

File content as of revision 4:aae7f8d4ab78:

#ifndef GRAPHICENGINE_H
#define GRAPHICENGINE_H

#include "Car.h"
#include "Chicken.h"
#include "Square.h"

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include <vector>

class GraphicEngine {
    
    public:
    Car *car1;
    Chicken *chick;
    
    GraphicEngine(Chicken *chicken);
    
    N5110 lcd;
    
    //initialize the LCD
    void init();
    
    //draws the chicken to the LCD screen
    void showChicken();

    //draws an individual car to the screen
    void showCar(Car *car);
    
    void clear();
    
    void refresh();
    
    void contrast();
    
    void backLightOn();
    
};

#endif