Cellular automata on a pico…
Cells are colour-coded according to their age. Button A resets, B clears the screen, X adds a randomly-placed glider (this happens randomly without pressing anything). Y toggles screen brightness.
PICO_SDK_PATHis set correctly (relative to the build dir) in your environment, e.g.
(fork,) clone and build pimoroni-pico
pimoroni-picoin the root of this project.
build the image with
mkdir build && cd build && cmake .. && make -j
copy image to device
back of the net!
The algorithm itself can be tested/debugged on the host machine using the test harness, e.g.:
g++ -g -O0 --std=c++17 src/test_conway.cpp src/conway.cpp -o test