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
Diff: GraphicEngine/GraphicEngine.h
- Revision:
- 5:6e3afee7eac3
- Parent:
- 4:aae7f8d4ab78
- Child:
- 8:52794de935b2
--- a/GraphicEngine/GraphicEngine.h Wed May 06 16:53:18 2020 +0000 +++ b/GraphicEngine/GraphicEngine.h Thu May 07 05:35:50 2020 +0000 @@ -11,31 +11,45 @@ #include <vector> class GraphicEngine { + public: + typedef struct { + int x; + int y; + int width; + int height; + + } DrawCar; public: - Car *car1; - Chicken *chick; - GraphicEngine(Chicken *chicken); - - N5110 lcd; - - //initialize the LCD - void init(); + Car *car1; + Chicken *chick; + + GraphicEngine(Chicken *chicken); + + N5110 lcd; + + //initialize the LCD + void init(); + + //draws the chicken to the LCD screen + void showChicken(); - //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(); + void printTest(); + + void showIndividualCar(Car *car); + void displayCar(DrawCar &size); - //draws an individual car to the screen - void showCar(Car *car); - - void clear(); - - void refresh(); - - void contrast(); - - void backLightOn(); };