#include <LedControl.h>
// LedControl(DataIn, Clock, ChipSelect, nCascades);
LedControl lc=LedControl(10,12,11,1);
void setup() {
lc.shutdown(0,false);
lc.setIntensity(0,8); // 0 ~ 15
lc.clearDisplay(0);
}
int i = 0, j = 0;
void loop() {
lc.setLed( 0, i, j, true );
j++;
if ( j >= 8 ) {
j = 0;
i++;
if ( i >= 8 ) {
lc.clearDisplay(0);
i = 0;
}
}
delay(200);
}