Conway's Game of Life setup to run by itself on a Serial 4D Systems 3.2" LCD. Does not yet use the touch screen.

Dependencies:   4DGL mbed

Files at this revision

API Documentation at this revision

Comitter:
copperd
Date:
Wed Dec 22 01:12:37 2010 +0000
Parent:
0:3e9d11eb5a2e
Commit message:
2nd public, It looks nicer with a black background

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3e9d11eb5a2e -r 714e68b0ba58 main.cpp
--- a/main.cpp	Tue Dec 21 23:38:22 2010 +0000
+++ b/main.cpp	Wed Dec 22 01:12:37 2010 +0000
@@ -9,7 +9,7 @@
     
     srand(1); // Random seed
     ecran.baudrate(115200);
-    ecran.background_color(WHITE);
+    ecran.background_color(BLACK);
     ecran.pen_size(SOLID);
     // Set up Grid
     // Display field is 34 x 25
@@ -91,7 +91,7 @@
                {
                displayold[sx][sy] = displaynew[sx][sy];
                if (displaynew[sx][sy] == 1) ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),RED);
-               else ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),WHITE);     
+               else ecran.rectangle(((9*sx)+1),((9*sy)+1),((9*sx)+7),((9*sy)+7),BLACK);     
                
                }