#include <LedControl.h>
int DIN = 11;
int CS = 10;
int CLK = 9;
LedControl lc=LedControl(DIN,CLK,CS,0);
void setup(){
lc.shutdown(0,false);
lc.setIntensity(0,15);
lc.clearDisplay(0);
}
void loop(){
byte s[8]= {0x3c,0x3c,0x66,0x66,0x7e,0x7e,0x66,0x66};
byte n[8]= {0x00,0x1c,0x24,0x24,0x3c,0x24,0x24,0x1c};
byte f[8]= {0x00,0x1c,0x24,0x24,0x3c,0x24,0x24,0x1c};
byte B[8]= {0x00,0x18,0x24,0x24,0x24,0x24,0x18,0x00};
byte O[8]= {0x00,0x30,0x48,0x08,0x30,0x40,0x48,0x30};
byte J[8]= {0x20,0x00,0x20,0x20,0x60,0x38,0x28,0x30};
byte I[8]= {0x00,0x18,0x24,0x24,0x24,0x24,0x18,0x00};
byte N[8]= {0x00,0xc7,0xc7,0xcf,0xdb,0xf3,0xe3,0xc3};
printByte(s);
delay(1000);
printByte(n);
delay(1000);
printByte(f);
delay(1000);
printByte(B);
delay(1000);
printByte(O);
delay(1000);
printByte(J);
delay(1000);
printByte(I);
delay(1000);
printByte(N);
delay(1000);
lc.clearDisplay(0);
delay(1000);
}
void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}