Conway's game of life applied to the mbed and an RA8875 LCD.

Dependencies:   LifeRules mbed RA8875

Inspired by a forum discussion on the mbed site, this version was scaled to support up to a 480x272 display - in a monochrome mode, or at a lower resolution in color (the color shows simple animation for birthing and dying cells).

Leveraging the LifeRules class, the game can be easily adapted to other displays - whether monochrome or color.

By default, this version allocates memory from the Ethernet ram banks, so avoids the memory limitations of some designs.

It should be simple to adapt it to any display - color or b&w, high or low resolution.

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Fri Dec 18 00:08:24 2015 +0000
Parent:
4:6edc72b38ec2
Child:
6:4d62d10e2c1d
Commit message:
Updated the demo with the updated RA8875 library.

Changed in this revision

RA8875.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875.lib	Sun Dec 28 23:15:05 2014 +0000
+++ b/RA8875.lib	Fri Dec 18 00:08:24 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/WiredHome/code/RA8875/#01da2e34283d
+http://mbed.org/users/WiredHome/code/RA8875/#66edf771373a
--- a/main.cpp	Sun Dec 28 23:15:05 2014 +0000
+++ b/main.cpp	Fri Dec 18 00:08:24 2015 +0000
@@ -146,6 +146,7 @@
     pc.baud(460800);    // I like a snappy terminal, so crank it up!
     pc.printf("\r\nConway's Game of Life - Build " __DATE__ " " __TIME__ "\r\n");
 
+    lcd.init();
     lcd.frequency(5000000);
     lcd.puts("Welcome to Conway's Game of Life\r\n\r\n");
     INFO("Destroy all life");
--- a/mbed.bld	Sun Dec 28 23:15:05 2014 +0000
+++ b/mbed.bld	Fri Dec 18 00:08:24 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file