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: ELEC2645_JoystickLCD_LPC1768_2021
Diff: lib/Road.h
- Revision:
- 2:18fd28044860
- Parent:
- 1:2ae7a8b01771
- Child:
- 3:cbe2dcca5058
--- a/lib/Road.h Wed Mar 17 17:32:56 2021 +0000 +++ b/lib/Road.h Thu Mar 18 13:21:12 2021 +0000 @@ -2,27 +2,24 @@ #define ROAD_H #include "mbed.h" -/*#include "N5110.h" +#include "N5110.h" #include "GameEngine.h" -#include "Utils.h" class Road { public: Road(); - void draw(N5110 &lcd); - int set_inclination(int); - bool set_warning(); - Position2D set_warm_position(int); - int set_direction(int); + void init(); + void draw(N5110 &lcd, int i); + void set_inclination(int inclination); + void set_direction(int direction); private: int _inclination; - bool _warn; - int _warn_position; int _direction; + void _draw_warn(N5110 &lcd, int warn_position); }; -#endif */ \ No newline at end of file +#endif \ No newline at end of file