LED MATRIX CASE - Max7219 x 4 - bluePill

LED MATRIX CASE - Max7219 x 4 - bluePill

thingiverse

Case for four led matrixes and a bluepill. Enjoy. Also added a generic matrix only case, which could be waterproof if rubberized. Inspired by https://www.instructables.com/id/LED-Matrix-Game-of-Life-16x16/. Regarding the above code: I used PA7 - dataIn, PA5 Clk, and PA4 Load. Once I aligned the matrices, I copied the function that splits the screen into four parts. Then I pasted it at the end, renamed the function to displayLogo, defined a new byte at the start of the sketch called logo [16][16], created a logo out of 16 lines of 16 ones and zeros, and replaced all calls to 't1' in the displayLogo function with 'logo'. Now I can call displayLogo() in setup or when a new generation occurs. And if it stalls on zero movement: This code takes a snapshot of t1 every 20 steps and compares it to the snapshot from 20 generations ago called last. If they're the same, memcmp returns a zero into n, which then triggers a new generation. int n = 1; int checkcount = 20; checkCount++; if (checkCount >= CHECK_COUNT) { n = memcmp(t1,last,sizeof(last)); if (n == 0) { randomize(t1); clearDisplays(); checkCount = 0; updateDisplay(t1); noOfGeneration == 0; } checkCount = 0; last = t1; } Duuuunnaaah!!! Next job: using the m5stick self-playing pong code with the max7219, then asteroids, then defender of sorts.

Download Model from thingiverse

With this file you will be able to print LED MATRIX CASE - Max7219 x 4 - bluePill with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on LED MATRIX CASE - Max7219 x 4 - bluePill.