ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
7:1dce07fd0867
Parent:
5:6e3afee7eac3
Child:
8:52794de935b2
--- a/GraphicEngine/GraphicEngine.cpp	Mon May 11 21:16:12 2020 +0000
+++ b/GraphicEngine/GraphicEngine.cpp	Mon May 11 22:57:53 2020 +0000
@@ -44,7 +44,7 @@
         
     // draw to screen
     // create an enum to determine the vehicle type
-    for(int y = 0; y < 2; y++){
+    for(int y = 0; y < 4; y++){
         showIndividualCar(&car[y]);
     }
 }
@@ -61,7 +61,7 @@
 }
 
 void GraphicEngine::displayCar(DrawCar &size){
-     lcd.drawRect(size.x, size.y, size.width, size.height, FILL_BLACK);
+     lcd.drawRect(size.x, size.y, size.width, size.height, FILL_TRANSPARENT);
 }
 
 void GraphicEngine::printTest(){