Conway's game of life - derived from another project, turned into a c++ class, and scaled to support up to a 480x272 display, or a lower resolution color display.

Dependents:   GameOfLife

Revision:
3:860ae49fedb7
Parent:
1:9e88d16ab21e
--- a/LifeRules.cpp	Wed Apr 23 11:42:10 2014 +0000
+++ b/LifeRules.cpp	Wed Apr 23 22:54:34 2014 +0000
@@ -43,7 +43,7 @@
         uint8_t mask = b << (bitIndex);
         pLifeMap[byteIndex] = curCell | mask;
     } else {
-        ERR(" Out of Bounds value (%d, %d)\r\n", x, y);
+        error(" Out of bounds value (%d, %d)\r\n", x, y);
     }
 }
 
@@ -60,7 +60,7 @@
             b = (ValueOfLife)(b & 1);
         return b;
     } else {
-        ERR(" Out of Bounds value (%d, %d)\r\n", x, y);
+        error(" Out of Bounds value (%d, %d)\r\n", x, y);
         return dead;
     }
 }