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:
 - 14:2dfe04ced21c
 - Parent:
 - 13:7b7ec5db56b2
 
--- a/Food/Food.cpp	Wed May 27 00:59:14 2020 +0000
+++ b/Food/Food.cpp	Wed May 27 03:18:16 2020 +0000
@@ -21,7 +21,7 @@
     srand(_seed);
     while (rand_pos(pad, lcd) == false){ //while new food coordinates are in the snake/walls
         rand_pos(pad, lcd);              //choose new coords by rerunning the function
-        printf("Reselected food position\n");
+        //printf("Reselected food position\n");
     }
 }
 
@@ -45,6 +45,7 @@
     // draw food, with alternating pixels depending on frame. 
     _frame++;
     _frame = _frame % 12;
+    //printf("Food frame: %d\n", _frame);
     if (_frame > 6) { 
         lcd.drawLine(x, y, x + 1, y + 1, 1);
     } else {