#include <LedControl.h>
int DIN = 12;
int CS = 11;
int CLK = 10;
LedControl lc=LedControl(DIN,CLK,CS,0);
void setup(){
lc.shutdown(0,false); //The MAX72XX is in power-saving mode on startup
lc.setIntensity(0,15); // Set the brightness to maximum value
lc.clearDisplay(0); // and clear the display
}
void loop(){
byte f[8]= {0x00,0x66,0xFF,0xFF,0x7E,0x3C,0x18,0x00,};
byte g[8]= {0xFF,0x99,0x00,0x00,0x81,0xC3,0xE7,0xFF,};
byte h[8]= {0x00,0x66,0xFF,0xFF,0x7E,0x3C,0x18,0x00,};
byte i[8] = {0xFF,0x99,0x00,0x00,0x81,0xC3,0xE7,0xFF,};
printByte(f);
delay(1000);
printByte(g);
delay(1000);
printByte(h);
delay(1000);
printByte(i);
delay(1000);
}
void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}