//02 Display Character B
void setup() {
// put your setup code here, to run once:
direction();
}
void loop() {
// put your main code here, to run repeatedly:
code();
}
//*******************************************
void delay_()
{
volatile long i;
for(i=0;i<5000;i++);
}
void direction()
{
volatile char *dirf,*dirk;
dirf = 0x30; dirk = 0x107;
*dirf = 0xFF; *dirk = 0xFF;
}
void code()
{
volatile char *outf,*outk,i;
outf = 0x31; outk = 0x108;
for(i=0;i<8;i++)
{
// row coloum
if(i==0){*outf = 0x60;*outk = 0xFE;delay_();}
if(i==1){*outf = 0x50;*outk = 0xFD;delay_();}
if(i==2){*outf = 0x50;*outk = 0xFB;delay_();}
if(i==3){*outf = 0x60;*outk = 0xF7;delay_();}
if(i==4){*outf = 0x50;*outk = 0xEF;delay_();}
if(i==5){*outf = 0x50;*outk = 0xDF;delay_();}
if(i==6){*outf = 0x60;*outk = 0xBF;delay_();}
if(i==7){*outf = 0x00;*outk = 0x7F;delay_();}
}
}