//my firsr 8x8 dot_matrix display test 25-12-2022
// Right WELCOME
#define DELAY 300000
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)
{
//W==========================
*outk=0xC1;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xFB;
*outf=0x40;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x20;
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++);
//E=============================
*outk=0xC1;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xD5;
*outf=0x70;
for(j=0;j<DELAY;j++);
//=========================
*outk=0xC1;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xD5;
*outf=0x07;
for(j=0;j<DELAY;j++);
//L=========================
*outk=0xC1;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xFD;
*outf=0x70;
for(j=0;j<DELAY;j++);
//===========================
*outk=0xC1;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xFD;
*outf=0x07;
for(j=0;j<DELAY;j++);
//C======================
*outk=0xE3;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xDD;
*outf=0x70;
for(j=0;j<DELAY;j++);
//===========================
*outk=0xE3;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xDD;
*outf=0x07;
for(j=0;j<DELAY;j++);
//O=================================
*outk=0xE3;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xDD;
*outf=0x60;
for(j=0;j<DELAY;j++);
*outk=0xE3;
*outf=0x10;
for(j=0;j<DELAY;j++);
//=========================
*outk=0xE3;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xDD;
*outf=0x06;
for(j=0;j<DELAY;j++);
*outk=0xE3;
*outf=0x01;
for(j=0;j<DELAY;j++);
//M============================
*outk=0xC1;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xEF;
*outf=0x60;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x10;
for(j=0;j<DELAY;j++);
//=========================
*outk=0xC1;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xEF;
*outf=0x06;
for(j=0;j<DELAY;j++);
*outk=0xC1;
*outf=0x01;
for(j=0;j<DELAY;j++);
//E==========================
*outk=0xC1;
*outf=0x80;
for(j=0;j<DELAY;j++);
*outk=0xD5;
*outf=0x30;
for(j=0;j<DELAY;j++);
//=========================
*outk=0xC1;
*outf=0x08;
for(j=0;j<DELAY;j++);
*outk=0xD5;
*outf=0x06;
for(j=0;j<DELAY;j++);
}
}
void loop() {
// put your main code here, to run repeatedly:
}