#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
#define out0 P0
#define out2 P2
#define out1 P1
void delay(uint j)
{
uchar i=250;
for(;j>0;j--)
{
while(--i);
i=100;
}
}
uchar code string[]= {
/
0xFF,0xFF,0xF3,0xFF,0x73,0xC0,0x73,0xC0,0xC0,0xF3,0xC0,0xF9,0x73,0x80,0x63,0x80,
0xC1,0x95,0xD1,0x94,0x70,0x92,0x32,0x93,0x93,0x99,0xF3,0x9C,0x73,0x86,0x33,0xCF,
//
0xFF,0xFF,0x3F,0xFF,0x7F,0xFE,0x01,0x80,0x01,0x80,0xF9,0x9F,0x0F,0xF0,0x0F,0xF0,
0xFF,0xFF,0x01,0x80,0x01,0x80,0x7F,0xFE,0x67,0xF2,0x73,0xC6,0x19,0xCE,0x3F,0xFF,
//
0xFF,0xFF,0xE7,0xFF,0x27,0xC0,0x27,0xC0,0x33,0xCF,0x33,0xC0,0x31,0xC0,0xF0,0xF9,
0x12,0x80,0x13,0x80,0xF3,0xF0,0x73,0xE0,0x33,0xC9,0x93,0x99,0xD3,0xB9,0xF3,0xF9
};
void main()
{
uchar i,j,n;
while(1)
{
for(j=0;j<3;j++) //
{
for(n=0;n<40;n++) //
{
for(i=0;i<16;i++) //
{
out1=i%16; //
out0=string[i*2+j*32]; //
out2=string[i*2+1+j*32];
delay(4);
out0=0xff;
out2=0xff;
}
}
}
}
}
|