ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
3:648c9d5001be
Child:
4:aae7f8d4ab78
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GraphicEngine/GraphicEngine.h	Mon May 04 03:55:03 2020 +0000
@@ -0,0 +1,44 @@
+#ifndef GRAPHICENGINE_H
+#define GRAPHICENGINE_H
+
+#include "Car.h"
+#include "Chicken.h"
+#include "Square.h"
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+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
+    
+    
\ No newline at end of file