I'm currently working on a 8x8 LED matrix program, and came across code which uses a 8x10 matrix engine.
EDIT 'A' and 'R' are defined strings given:
#define A {B00000000,B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010,B00000000}
and #define R {B00000000,B00111100,B01000010,B01000010,B01000010,B01111100,B01000100,B01000010,B01000010,B00000000}
I'm currently attempting to change this line (8x10 matrix array)
const int numPatterns = 16;//this is the number of patterns you want to display
byte patterns[numPatterns][10]={A,R,A,R,A,R,A,R,A,R,A,R};// the patterns order
To this:
const int numPatterns = 16;//this is the number of patterns you want to display
byte patterns[numPatterns][8]={A,R,A,R,A,R,A,R,A,R};// the patterns order
However, it proceeds to give me an error, I've tried myself to understand the concepts of 2D arrays in other languages, except from my basic experience in this IDE, it seems to dislike any real changes to 2D arrays.