// Try Everything! Happy Hacking :)
#include <Arduino.h>
#include <LedControl.h>
LedControl lc = LedControl(12, 10, 11, 1);
void setup() {
pinMode(9, INPUT_PULLUP);
lc.shutdown(0, false);
lc.setIntensity(0, 8);
lc.setIntensity(0, 8);
}
void loop() {
if ((digitalRead(9) != 1)) {
byte matrix_2061634626[8] = { B11111111,B11111111,B00000110,B00001100,B00011000,B00110000,B11111111,B11111111 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_2061634626[row]);
}
delay(0.5 * 1000);
byte matrix_573806027[8] = { B11111100,B11111110,B00010011,B00010011,B00010011,B00010011,B11111110,B11111100 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_573806027[row]);
}
delay(0.5 * 1000);
byte matrix_913224758[8] = { B11111111,B11111111,B00000110,B00001100,B00011000,B00110000,B11111111,B11111111 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_913224758[row]);
}
delay(0.5 * 1000);
byte matrix_1854077587[8] = { B11111111,B11111111,B11000011,B11000011,B11000011,B11000011,B01111110,B00111100 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_1854077587[row]);
}
delay(0.5 * 1000);
byte matrix_1995362324[8] = { B11111100,B11111110,B00010011,B00010011,B00010011,B00010011,B11111110,B11111100 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_1995362324[row]);
}
delay(0.5 * 1000);
}
else{
byte matrix_659462900[8] = { B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000 };
for (int row = 0; row < 8; row++)
{
lc.setRow(0, row, matrix_659462900[row]);
}
}
}