Cellular automation using an Arduino Uno and a Heltec I2C OLED display.
This project took a couple of iterations to create. My original design for the program revolved around using the LolShield, and I wanted to recreate Conway's Game of Life on it, however I would be able to do little more than a simple glider on that display due to its size. I then took some of the concepts from that and applied it to the OLED display that I recently played around with. This design revolved around using a two-dimensional array of structs to represent each pixel. Each struct would have an x and y value to dictate its position on the board, then it would have variables to indicate its on/off state, whether or not the cell was "Alive" or "Dead", and another two-dimensional array of structs that functioned as an adjacency list. Two cell-state variables were used so that I could make the program pass through the array and change alive/dead states of the cells without the changes affecting each other on the same pass through. After one pass throu...