I am trying to drive an LED matrix and have an issue with shifting the whole display down. My end goal is to shift all of the rows and hopefully eventually implement a wrap around. The problem is that the first row is copied every time each row gets shifted.
The code that i used is as follows:
for (int i = (LAYERS - 1); i >= 0; i-- ) {
for(int z = 0; z < BYTES; z++) {
LED_Buffer[i+1][z] = LED_Buffer[i][z];
}
}