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 ll16j23s_test_docs
Diff: Food/Food.cpp
- Revision:
- 6:6c9453397f4a
- Parent:
- 5:06fa7674622a
- Child:
- 7:dd84e0fab346
--- a/Food/Food.cpp Sat May 23 17:16:44 2020 +0000
+++ b/Food/Food.cpp Sat May 23 20:01:00 2020 +0000
@@ -6,7 +6,6 @@
_x = 22; // starts off-screen
_y = 30;
_frame = 0;
- srand(3); //CHANGE THIS TO ACCELERAOMETRE VALUE
}
Food::~Food()
@@ -18,7 +17,7 @@
{
mag.init();
Data _values = mag.get_values();
- _seed = 10000*(_values.mx + _values.my + _values.mz);
+ _seed = 1000000*(_values.mx + _values.my + _values.mz);
srand(_seed);
}