Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
GraphicEngine/GraphicEngine.h
- Committer:
- el19tb
- Date:
- 2020-05-18
- Revision:
- 40:8cc82e3fce06
- Parent:
- 18:6be4c3c94a3d
- Child:
- 42:04e326dcf09b
File content as of revision 40:8cc82e3fce06:
#ifndef GRAPHICENGINE_H #define GRAPHICENGINE_H #include "Car.h" #include "Chicken.h" #include "Square.h" #include "Vehicle.h" #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include <vector> class GraphicEngine { public: typedef struct { int x; int y; int width; int height; } DrawCar; typedef struct { int x; int row; } DrawRoad; public: Car *car1; Chicken *chick; GraphicEngine(); 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 print(); void contrast(); void backLightOn(); void printTest(); void printLoser(); void showIndividualCar(Car *car); void displayCar(DrawCar &size); }; #endif