// LedMatrix met namen
// W P Hart
//
// Houtmeyers Patrick L
// 12/8/2024
#include <LedControl.h>
int DIN = 11;
int CS = 10;
int CLK = 13;
byte W[8]= {0x00,0x63,0x63,0x63,0x6b,0x7f,0x77,0x63};
byte E[8]= {0x00,0x7e,0x60,0x60,0x7c,0x60,0x60,0x7e};
byte N[8]= {0x00,0x63,0x73,0x7b,0x6f,0x67,0x63,0x63};
byte D[8]= {0x00,0x7c,0x66,0x66,0x66,0x66,0x66,0x7c};
byte Y[8]= {0x00,0x66,0x66,0x66,0x3c,0x18,0x18,0x18};
byte Hart[8]= {0x00,0x22,0x77,0x7f,0x7f,0x3e,0x1c,0x08};
byte P[8]= {0x00,0x7c,0x66,0x66,0x66,0x7c,0x60,0x60};
byte A[8]= {0x00,0x3c,0x66,0x66,0x7e,0x66,0x66,0x66};
byte T[8]= {0x00,0x7e,0x5a,0x18,0x18,0x18,0x18,0x18};
byte R[8]= {0x00,0x7c,0x66,0x66,0x7c,0x78,0x6c,0x66};
byte I[8]= {0x00,0x3c,0x18,0x18,0x18,0x18,0x18,0x3c};
byte C[8]= {0x00,0x3c,0x66,0x60,0x60,0x60,0x66,0x3c};
byte K[8]= {0x00,0x66,0x6c,0x78,0x70,0x78,0x6c,0x66};
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};
printByte(smile);
delay(2000);
printWP();
lc.clearDisplay(0);
delay(2000);
}
void printWP()
{
printByte(W);
delay(1000);
printByte(E);
delay(1000);
printByte(N);
delay(1000);
printByte(D);
delay(1000);
printByte(Y);
delay(1000);
printByte(Hart);
delay(1500);
printByte(P);
delay(1000);
printByte(A);
delay(1000);
printByte(T);
delay(1000);
printByte(R);
delay(1000);
printByte(I);
delay(1000);
printByte(C);
delay(1000);
printByte(K);
delay(1000);
}
void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}