#include "LedControl.h"
int Din = 12;
int CS = 11;
int CLK = 10;
LedControl Ic=LedControl(Din,CLK,CS,4);
unsigned long delaytime =100;
byte test1[8]={0x00,0xF8,0x26,0x29,0x2F,0x28,0x26,0x00};
byte test2[8]= {0x00,0x02,0x37,0x42,0x22,0x12,0x61,0x00};
void setup() {
Ic.shutdown(0,false);
Ic.setIntensity(0,10);
Ic.clearDisplay(0);
}
void loop() {
writetest();
delay(600);
}
void writetest(){
for(int z=2;z>=-1;z--){
for(int x=0;x<8;x++){
int y=7-x;
Ic.setRow(z,x,test1[y]);
}
for(int x=0;x<8;x++){
int y=7-x;
Ic.setRow(z+1,x,test2[y]);
}
delay(500);
for(int x=0;x<4;x++){
Ic.clearDisplay(x);
}
}
}