Hi.
I am working on a Game of Life using 8x8 LED matrices. I have started working on expanding it from an 8x8 to 16x16 using three more identical LED matrices.
The current implementation I use is with an unsigned char array like this:
// Keep the current matrix setup.
unsigned char buffer[8] = { B00000000,
B00000000,
B00111100,
B00101000,
B00111000,
B00001000,
B01110000,
B00000000
};
I want to know if there is a similar way so I can hold 16 bits in each row, 16 times. All of the LEDs in the same array. That way I could keep my current implementation of the logic when computing next generation.
The other alternative is to have a buffer for each matrix but that would complicate the code implementation a bit.
Any suggestions?
Thanks.