/*01 Display Character A*/
void setup()
{
volatile char *dirf,*dirl;
Serial.begin(9600);
volatile char *outf,*outl;
dirf=0x30;dirl=0x10A;
outf=0x31;outl=0x10B;
*dirf=0xFF;*dirl=0xFF;
volatile unsigned char arrf[7][8]={0xc3,0xc3,0xc3,0xc3,0xdb,0xff,0xe7,0xc3,
0xff,0xff,0xc0,0xff,0xff,0xc0,0xff,0xff,
0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xff,0xff,
0x1f,0x3f,0x60,0x60,0x60,0x60,0x3f,0x1f,
0x3c,0x7e,0xc3,0xdb,0xdb,0xc3,0x7e,0x3c,
0x81,0xc3,0xe7,0xff,0xdb,0xc3,0xc3,0xc3,
0xff,0xff,0xc0,0xff,0xff,0xc0,0xff,0xff,
};
volatile char arrl[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
volatile unsigned char del[8]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
while(1)
{
volatile int i,r,t;
volatile long j,c;
c=10;
for(r=7;r>=0;r=r-2)
{
for(int k=0; k<9; k++)
{
while(c-- > 0)
{
for(i=0;i<k;i++)
{
*outl=arrl[7-i];
*outf=(arrf[7-r][i]);
for(j=0;j<1000;j++);
*outf=0x00;
*outl=0xff;
}
}
c=10;
}
}
for(r=1;r<=7;r=r+2)
{
for(int k=0; k<9; k++)
{
while(c-- > 0)
{
for(i=0;i<k;i++)
{
*outl=arrl[7-i];
*outf=(arrf[r][i]);
for(j=0;j<1000;j++);
*outf=0x00;
*outl=0xff;
}
}
c=10;
}
}
}
}
void loop() {}