ELEC2645 (2017/18) / Mbed 2 deprecated el16a2t

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
el16a2t
Date:
Mon May 07 00:02:49 2018 +0000
Parent:
11:4907e6e7e855
Child:
13:61aeeb4e4e47
Commit message:
also created another random variable so that each car sprite uses its own random variable rather than both having their co-ordinate set by the same random number. This stops both carsw being in the same lane one after another

Changed in this revision

engine/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/engine/main.cpp	Mon May 07 00:00:49 2018 +0000
+++ b/engine/main.cpp	Mon May 07 00:02:49 2018 +0000
@@ -215,8 +215,6 @@
     printf("pot_value = %f\n", pot_value);
     float wait_time = pot_value/10;
 
-
-
     lcd.refresh();
 
     wait(0.1-wait_time);