//my firsr 8x8 dot_matrix display test 25-12-2022
// Right WELCOME
#define DELAY 90000
void setup() {
// put your setup code here, to run once:
volatile char *dirf,*dirk;
volatile char *outf,*outk;
volatile long i,j;
dirf = 0x30; dirk = 0x107;
*dirf = 0xff; *dirk = 0xff;
outf= 0x31; outk = 0x108;
while(1)
{
*outk=0xC1;
*outf=0x01;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x02;
for(j=0;j<DELAY;j++);
*outk=0xFB;
*outf=0x01;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x04;
for(j=0;j<DELAY;j++);
*outk=0xFB;
*outf=0x02;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x01;
for(j=0;j<DELAY;j++);
}
}
void loop() {
// put your main code here, to run repeatedly:
}