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.cpp
- Revision:
- 49:6cad8b6ec5f2
- Parent:
- 48:8ccfc74b60a5
- Child:
- 50:9ffeb4a10c0a
--- a/GraphicEngine/GraphicEngine.cpp Sat May 23 21:47:19 2020 +0000
+++ b/GraphicEngine/GraphicEngine.cpp Sun May 24 02:30:49 2020 +0000
@@ -40,6 +40,10 @@
displayVehicle(obj->object.x, obj->object.y, obj->object.c);
}
}
+void GraphicEngine::drawDangerZone()
+{
+ lcd.drawSprite(0, 48 - 4*11, 7, 83, (int *)danger_zone);
+}
void GraphicEngine::displayVehicle(int x, int y, char c)
{
@@ -101,15 +105,16 @@
}
}
-void GraphicEngine::drawGoal(int x, int row)
-{
- //lcd.drawSprite(x, row, 8, 8, (int *)end_post);
-}
-
void GraphicEngine::drawSafetyLanes()
{
- lcd.drawRect(0, 48 - 4, 84, 4, FILL_TRANSPARENT); // row 0 -> bottom
- lcd.drawRect(0, 48 - 4*6, 84, 4, FILL_TRANSPARENT); // row 6 -> middle(ish)
+ lcd.drawSprite(0, 48 - 4, 4, 83, (int *)safety_zone); // row 0 -> bottom
+
+ lcd.drawSprite(0, 48 - 4*6, 4, 83, (int *)safety_zone); // row 6 -> middle(ish)
+}
+
+void GraphicEngine::drawEndPost()
+{
+ lcd.drawSprite(24, 48 - 4*11, 8, 12, (int *)goal_post);
}
void GraphicEngine::printTest()