#include <LedControl.h>
int DIN=12;//Data input
int CLK=11;//Clock input
int CS=10;//Chip Select
int Matrix=1;
LedControl lc(DIN,CLK,CS,Matrix);
byte A[8]={
B00000000,
B00011100,
B00100010,
B00100010,
B00111110,
B00100010,
B00100010,
B00100010};
byte B[8]={
B00000000,
B00011110,
B00100010,
B00100010,
B00011110,
B00100010,
B00100010,
B00011110};
byte C[8]={
B00000000,
B00011100,
B00100010,
B00000010,
B00000010,
B00000010,
B00100010,
B00011100};
byte D[8]{
B00000000,
B00011110,
B00100010,
B00100010,
B00100010,
B00100010,
B00100010,
B00011110};
byte E[8]={
B00000000,
B00111110,
B00000010,
B00000010,
B00111110,
B00000010,
B00000010,
B00111110};
void setup() {
// put your setup code here, to run once:
//lc.shutdown(0,false);//تفريغ الطاقة
//lc.setIntensity(0,15);
//lc.clearDisplay(0);
}
void loop() {
// put your main code here, to run repeatedly:
//lc.setLed(0,1,2,true);
// lc.setRow(0,0,0xFF);
// lc.setColumn(0,0,0xFF);
for(int i=0;i<=7;i++){
lc.setRow(0,i,A[i]);
}
delay(1000);
for(int i=0;i<=7;i++){
lc.setRow(0,i,B[i]);
}
delay(1000);
for(int i=0;i<=7;i++){
lc.setRow(0,i,C[i]);
}
delay(1000);
for(int i=0;i<=7;i++){
lc.setRow(0,i,D[i]);
}
delay(1000);
for(int i=0;i<=7;i++){
lc.setRow(0,i,E[i]);
}
delay(1000);
}