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