#include <LedControl.h>
// LED matritsa uchun pinlar
int DIN = 12;
int CS = 11;
int CLK = 10;
LedControl lc = LedControl(DIN, CLK, CS, 0);
void setup() {
lc.shutdown(0, false);
lc.setIntensity(0, 8);
lc.clearDisplay(0);
}
void loop() {
lc.setRow(0, 0, B00111100);
lc.setRow(0, 1, B00000010);
lc.setRow(0, 2, B00000010);
lc.setRow(0, 3, B00111100);
lc.setRow(0, 4, B01000000);
lc.setRow(0, 5, B01000000);
lc.setRow(0, 6, B01000000);
lc.setRow(0, 7, B00111100);
delay(500);
lc.clearDisplay(0);
delay(500);
lc.setRow(0, 0, B00011000);
lc.setRow(0, 1, B00100100);
lc.setRow(0, 2, B01000010);
lc.setRow(0, 3, B01000010);
lc.setRow(0, 4, B01111110);
lc.setRow(0, 5, B01000010);
lc.setRow(0, 6, B01000010);
lc.setRow(0, 7, B01000010);
delay(500);
lc.clearDisplay(0);
delay(500);
lc.setRow(0, 0, B00000010);
lc.setRow(0, 1, B00000010);
lc.setRow(0, 2, B00000010);
lc.setRow(0, 3, B00000010);
lc.setRow(0, 4, B00000010);
lc.setRow(0, 5, B00000010);
lc.setRow(0, 6, B01000010);
lc.setRow(0, 7, B01111110);
delay(500);
lc.clearDisplay(0);
delay(500);
lc.setRow(0, 0, B00011000);
lc.setRow(0, 1, B00100100);
lc.setRow(0, 2, B01000010);
lc.setRow(0, 3, B01000010);
lc.setRow(0, 4, B01000010);
lc.setRow(0, 5, B01000010);
lc.setRow(0, 6, B00100100);
lc.setRow(0, 7, B00011000);
delay(500);
lc.clearDisplay(0);
delay(500);
lc.setRow(0, 0, B00000000);
lc.setRow(0, 1, B01000010);
lc.setRow(0, 2, B01100110);
lc.setRow(0, 3, B01011010);
lc.setRow(0, 4, B01000010);
lc.setRow(0, 5, B01000010);
lc.setRow(0, 6, B01000010);
lc.setRow(0, 7, B01000010);
delay(500);
lc.clearDisplay(0);
delay(500);
}