I need to connect 4 matrix leds to make it look like a 16x16, but in the example i'm gonna try to run 2 matrix. The code i've attached has the timings established by the datasheet, it is possible than some 'times' are bigger for avoid problems. the code follows this pattern.

// Simple program to test using the Arduino with the RGB Matrix// & Backpack from Sparkfun. Code is a combination of Heather Dewey-Hagborg,// Arduino Forum user: Little-Scale, and // Daniel Hirschmann. Enjoy!//// The Backpack requires 125Khz SPI, which is the slowest rate// at which the Arduino's hardware SPI bus can communicate at.//// We need to send SPI to the backpack in the following steps:// 1) Activate ChipSelect;// 2) Wait 500microseconds;// 3) Transfer 64bytes @ 125KHz (1 byte for each RGB LED in the matrix);// 4) De-activate ChipSelect;// 5) Wait 500microseconds// Repeat however often you like!

delay(2);// There are only 8 colours available to the matrix with the// backpack, so this will present 1 colour per column on the matrix }

digitalWrite(CHIPSELECT,HIGH); // disable the ChipSelect on the backpack 1delayMicroseconds(500); index = 0; // write the same on bp2 or extend the data array and don't set inde to 0 heredigitalWrite(CHIPSELECT,LOW); // enable the ChipSelect on the backpack 2delayMicroseconds(500);for (int i=0;i<8;i++) for (int j=0;j<8;j++) { spi_transfer(BLUE); index++;

delay(2);// There are only 8 colours available to the matrix with the// backpack, so this will present 1 colour per column on the matrix }

digitalWrite(CHIPSELECT,HIGH); delayMicroseconds(500);}

When you connect plug arduino in, the first upload the code and the screens often works 90% of the time, but the problem is when you push the resset button then the screens, then the screens are in a wrong state and from this moment LEDs do not work properly.El problema:Cuando conectas arduino al corriente electrico, la primera carga del codigo i de las pantallas suele funcionar un 90% de las veces pero el problema surge cuando pulsas el botón de reset del arduino, entonces las pantallas están en un estado erroneo y apartir de aquí los leds no se encienden correctamente:

Order & Incorrect orderDoes anyone have a solution? this is for project university, thanks.