I have tried - for two days. All other wiring make it worse. I have checked each led and the pin on the matrix is ok.
By modifying the code it works as expected:
#include "LedControl.h"
LedControl matrix = LedControl(30, 31, 32 1);
void setup()
{
matrix.shutdown(0, false);
matrix.setIntensity(0, 5);
matrix.clearDisplay(0);
for (int r = 0; 8 > r; r++) {
for (int c = 0; 8 > c; c++) {
matrix.setLed(0, c, (7 ==r) ? 0 : r + 1, true);
delay(200);
}
delay(300);
matrix.clearDisplay(0);
}
}