#include <LedControl.h>
int DIN = 12;
int CS = 11;
int CLK = 10;
byte letter_K[8] = {0x00, 0x42, 0x44, 0x48, 0x70, 0x48, 0x44, 0x42};
byte letter_A[8] = {0x18, 0x24, 0x42, 0x42, 0x7E, 0x42, 0x42, 0x42};
byte letter_R[8] = {0x7C, 0x42, 0x42, 0x7C, 0x48, 0x44, 0x42, 0x00};
byte letter_I[8] = {0x7E, 0x08, 0x08, 0x08, 0x08, 0x08, 0x7E, 0x00};
byte letter_N[8] = {0x42, 0x62, 0x72, 0x5A, 0x4E, 0x46, 0x42, 0x00};
byte letter_A2[8] = {0x18, 0x24, 0x42, 0x42, 0x7E, 0x42, 0x42, 0x42};
LedControl lc = LedControl(DIN, CLK, CS, 1); // Initialize the LedControl library
void setup() {
lc.shutdown(0, false); // Turn on the display
lc.setIntensity(0, 8); // Set the brightness (0-15)
lc.clearDisplay(0); // Clear the display
}
void loop() {
lc.setRow(0, 0, letter_K[0]); // Display the first row of the letter 'K'
lc.setRow(0, 1, letter_K[1]); // Display the second row of the letter 'K'
lc.setRow(0, 2, letter_K[2]); // Display the third row of the letter 'K'
lc.setRow(0, 3, letter_K[3]); // Display the fourth row of the letter 'K'
lc.setRow(0, 4, letter_K[4]); // Display the fifth row of the letter 'K'
lc.setRow(0, 5, letter_K[5]); // Display the sixth row of the letter 'K'
lc.setRow(0, 6, letter_K[6]); // Display the seventh row of the letter 'K'
lc.setRow(0, 7, letter_K[7]); // Display the eighth row of the letter 'K'
delay(1000); // Delay for 1 second
lc.setRow(0, 0, letter_A[0]); // Display the first row of the letter 'A'
lc.setRow(0, 1, letter_A[1]); // Display the second row of the letter 'A'
lc.setRow(0, 2, letter_A[2]); // Display the third row of the letter 'A'
lc.setRow(0, 3, letter_A[3]); // Display the fourth row of the letter 'A'
lc.setRow(0, 4, letter_A[4]); // Display the fifth row of the letter 'A'
lc.setRow(0, 5, letter_A[5]); // Display the sixth row of the letter 'A'
lc.setRow(0, 6, letter_A[6]); // Display the seventh row of the letter 'A'
lc.setRow(0, 7, letter_A[7]); // Display the eighth row of the letter 'A'
delay(1000); // Delay for 1 second
lc.setRow(0, 0, letter_R[0]); // Display the first row of the letter 'R'
lc.setRow(0, 1, letter_R[1]); // Display the second row of the letter 'R'
lc.setRow(0, 2, letter_R[2]); // Display the third row of the letter 'R'
lc.setRow(0, 3, letter_R[3]); // Display the fourth row of the letter 'R'
lc.setRow(0, 4, letter_R[4]); // Display the fifth row of the letter 'R'
lc.setRow(0, 5, letter_R[5]); // Display the sixth row of the letter 'R'
lc.setRow(0, 6, letter_R[6]); // Display the seventh row of the letter 'R'
lc.setRow(0, 7, letter_R[7]); // Display the eighth row of the letter 'R'
delay(1000); // Delay for 1 second
lc.setRow(0, 0, letter_I[0]); // Display the first row of the letter 'I'
lc.setRow(0, 1, letter_I[1]); // Display the second row of the letter 'I'
lc.setRow(0, 2, letter_I[2]); // Display the third row of the letter 'I'
lc.setRow(0, 3, letter_I[3]); // Display the fourth row of the letter 'I'
lc.setRow(0, 4, letter_I[4]); // Display the fifth row of the letter 'I'
lc.setRow(0, 5, letter_I[5]); // Display the sixth row of the letter 'I'
lc.setRow(0, 6, letter_I[6]); // Display the seventh row of the letter 'I'
lc.setRow(0, 7, letter_I[7]); // Display the eighth row of the letter 'I'
delay(1000); // Delay for 1 second
lc.setRow(0, 0, letter_N[0]); // Display the first row of the letter 'N'
lc.setRow(0, 1, letter_N[1]); // Display the second row of the letter 'N'
lc.setRow(0, 2, letter_N[2]); // Display the third row of the letter 'N'
lc.setRow(0, 3, letter_N[3]); // Display the fourth row of the letter 'N'
lc.setRow(0, 4, letter_N[4]); // Display the fifth row of the letter 'N'
lc.setRow(0, 5, letter_N[5]); // Display the sixth row of the letter 'N'
lc.setRow(0, 6, letter_N[6]); // Display the seventh row of the letter 'N'
lc.setRow(0, 7, letter_N[7]); // Display the eighth row of the letter 'N'
delay(1000); // Delay for 1 second
lc.setRow(0, 0, letter_A2[0]); // Display the first row of the second 'A'
lc.setRow(0, 1, letter_A2[1]); // Display the second row of the second 'A'
lc.setRow(0, 2, letter_A2[2]); // Display the third row of the second 'A'
lc.setRow(0, 3, letter_A2[3]); // Display the fourth row of the second 'A'
lc.setRow(0, 4, letter_A2[4]); // Display the fifth row of the second 'A'
lc.setRow(0, 5, letter_A2[5]); // Display the sixth row of the second 'A'
lc.setRow(0, 6, letter_A2[6]); // Display the seventh row of the second 'A'
lc.setRow(0, 7, letter_A2[7]); // Display the eighth row of the second 'A'
delay(1000); // Delay for 1 second
}