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:
- 16:8a65cccd9685
- Parent:
- 15:b15bf9357cd9
- Child:
- 17:67dbdfcdcec2
--- a/GraphicEngine/GraphicEngine.cpp Wed May 13 22:05:17 2020 +0000 +++ b/GraphicEngine/GraphicEngine.cpp Wed May 13 23:07:05 2020 +0000 @@ -37,6 +37,16 @@ lcd.drawRect(chick->x, chick->y, chick->width, chick->width, FILL_BLACK); } +void GraphicEngine::drawFirstSafetyBackground(int x, int row) +{ + lcd.drawSprite(x, 48 - 4*row, 4, 4, (int *)safety_lanes_one); +} + +void GraphicEngine::drawSecondSafetyBackground(int x, int row) +{ + lcd.drawSprite(x, 48 - 4*row, 4, 4, (int *)safety_lane_two); +) + // this is just going to be white blocks // road == '.' void GraphhicEngine::drawRoads(int row)