I'm struggling on how a 2D array is initialized. I think the rest of my code will work if I could just get the two lines of code working properly. I've tried many different {} combinations but the data is never entered correctly.
int TriStatus[3][16] = {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {1,0,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {0,1,0};
int PosServo[3][16] = {800,1050,1250, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1100,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100, 900,1000,1100};
I want the first three numbers to fill the rows then the next fille the next columns three rows.
would it be better to go the "PosServo[16][3]" route? I've tried this to but cannot figure out what the correct format is to initialize ether.