#include <LedControl.h>
int DIN = 12;
int CS = 11;
int CLK = 10;
byte V[8] = {0xc3,0xc3,0xc3,0xc3,0x66,0x66,0x3c,0x18};
byte N[8] = {0xc3,0xcf,0xcf,0xdb,0xdb,0xf3,0xf3,0xc3};
byte T[8] = {0xFF,0xFF,0x18,0x18,0x18,0x18,0x18,0x18};
byte U[8] = {0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xFF,0x7E};
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 smile[8]= {0x3C,0x42,0xA5,0x81,0xA5,0x99,0x42,0x3C};
byte neutral[8]= {0x3C,0x42,0xA5,0x81,0xBD,0x81,0x42,0x3C};
byte frown[8]= {0x3C,0x42,0xA5,0x81,0x99,0xA5,0x42,0x3C};
printByte(smile);
delay(1000);
printByte(neutral);
delay(1000);
printByte(frown);
delay(1000);
printEduc8s();
lc.clearDisplay(0);
delay(1000);
}
void printEduc8s()
{
printByte(V);
delay(1000);
printByte(N);
delay(1000);
printByte(T);
delay(1000);
printByte(U);
delay(1000);
}
void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}