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.
Diff: Map/Map.cpp
- Revision:
- 15:90b6821bcf64
- Parent:
- 14:7419c680656f
- Child:
- 18:11068b98e261
diff -r 7419c680656f -r 90b6821bcf64 Map/Map.cpp
--- a/Map/Map.cpp Sun Apr 26 20:31:53 2020 +0000
+++ b/Map/Map.cpp Tue Apr 28 19:13:12 2020 +0000
@@ -27,10 +27,13 @@
rand_heights_[i]= rand() % 8 + 5;
rand_lengths_[i]= rand() % 16 + 15;
}
- //printf loop to check random numbers generated are actaully random
- //for (int i = 0; i < 11; i++){
- //usb.printf("map height random array = %d\n", rand_heights_[i]);
- //}
+
+ //To to check random numbers generated are actaully random
+ #ifdef RANDOM_NUMBER_DEBUG
+ for (int i = 0; i < 11; i++){
+ printf("map height random array = %d\n", rand_heights_[i]);
+ }
+ #endif
}
void Map::draw_triangle(N5110 &lcd,int triangle_height){