Skip to content

A CircuitPython implementation of Conway's Game of Life, that shows the game over TFT LCD

License

Notifications You must be signed in to change notification settings

code2k13/GOF_circuitpython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f3a7d1a · Feb 18, 2023

History

8 Commits
Aug 30, 2022
Feb 18, 2023
Aug 30, 2022
Aug 30, 2022

Repository files navigation

CircuitPython Implementation of Conway's Game of Life

This repo contains code for CircuitPython implementation of the famous 'Conway's Game of Life'. It uses Adafruit's adafruit_st7735r library to draw the game on a 128x160 pixel color TFT LCD. This has been tested on Raspberry Pi Pico, here is a video of the game in action:

Game of Life on  128x160 TFT LCD

The code assumes you are using Raspberry Pi Pico and ST7735 based 120*160 pixel TFT LCD. The connections between the board and LCD are as follows:

Display Pin Number Display Pin Name Pi pico Pins
2 VCC 5V
1 GND GND
10 CS GP18
6 RESET GP17
7 A0 GP16
8 SDA GP11
9 SCL GP10
15 LED 3.3V

For a different board, you will have to update code to use PINs which were used for connecting the LCD

Things to try

  • Add a reset button to re-start the game.
  • Play around with 'scale' variable, try different value (recommended values are 2,4,8)

A CircuitPython implementation of Conway's Game of Life, that shows the game over TFT LCD

About

A CircuitPython implementation of Conway's Game of Life, that shows the game over TFT LCD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages