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:
Mon Mar 04 12:10:47 2019 +0000
Parent:
8:d0e048eef5db
Child:
10:f9ad09810324
Commit message:
Update RA8875 Lib to add GSL1680 support.

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
--- a/RA8875.lib	Sat Aug 06 15:12:41 2016 +0000
+++ b/RA8875.lib	Mon Mar 04 12:10:47 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/WiredHome/code/RA8875/#c91bd2e500b9
+http://mbed.org/users/WiredHome/code/RA8875/#f92c0f1f6db4
--- a/main.cpp	Sat Aug 06 15:12:41 2016 +0000
+++ b/main.cpp	Mon Mar 04 12:10:47 2019 +0000
@@ -159,7 +159,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.init(LCD_W, LCD_H, LCD_C);
     lcd.Backlight(0.5f);
 
     //lcd.frequency(5000000);