#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
#define out1 P0
#define out2 P2
#define tt P1
void delay(uint j)
{
uchar i=250;
for(;j>0;j--)
{
while(--i);
i=125;
}
}
uchar code string[]=
{
/*-- 文字: 广 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x7F,0xFF,0xFF,0xFE,0x03,0x80,0xFB,0xFF,0xFB,0xFF,0xFB,0xFF,0xFB,0xFF,0xFB,0xFF,
0xFB,0xFF,0xFB,0xFF,0xFB,0xFF,0xFB,0xFF,0xFD,0xFF,0xFD,0xFF,0xFE,0xFF,0xFF,0xFF,
/*-- 文字: 州 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xEF,0xDF,0xEF,0xDE,0xEF,0xDE,0xEF,0xDE,0xEF,0xDC,0xCD,0xDA,0xAD,0xDA,0xAD,0xD6,
0xEE,0xD6,0xEF,0xDE,0xEF,0xDE,0xF7,0xDE,0xF7,0xDE,0xFB,0xDE,0xFB,0xDE,0xFD,0xDF,
/*-- 文字: 市 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xBF,0xFF,0x7F,0xFF,0x00,0x80,0x7F,0xFF,0x7F,0xFF,0x07,0xE0,0x77,0xEF,0x77,0xEF,
0x77,0xEF,0x77,0xEF,0x77,0xEF,0x77,0xEF,0x77,0xEB,0x77,0xF7,0x7F,0xFF,0x7F,0xFF,
/*-- 文字: 风 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xFF,0xFF,0x07,0xE0,0xF7,0xEF,0xF7,0xED,0xD7,0xE9,0xB7,0xED,0x77,0xED,0xF7,0xEE,
0xF7,0xEE,0x77,0xED,0xB7,0xA9,0xDB,0xAB,0xEB,0x9B,0xFD,0x9F,0xFE,0xBF,0xFF,0xFF,
/*-- 文字: 标 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xF7,0xFF,0x77,0xC0,0xF7,0xFF,0xF7,0xFF,0xC0,0xFF,0x37,0x80,0xE3,0xFB,0xD3,0xFB,
0x55,0xEB,0x75,0xDB,0xB6,0x9B,0xD7,0xBB,0xF7,0xBB,0xF7,0xFB,0xF7,0xFA,0xF7,0xFD,
/*-- 文字: 电 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x03,0xE0,0x7B,0xEF,0x7B,0xEF,0x03,0xE0,0x7B,0xEF,
0x7B,0xEF,0x7B,0xEF,0x03,0xE0,0x7B,0xEF,0x7F,0xBF,0x7F,0xBF,0xFF,0x80,0xFF,0xFF,
/*-- 文字: 子 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xFF,0xFF,0x03,0xF0,0xFF,0xFB,0xFF,0xFD,0xFF,0xFE,0x7F,0xFF,0x7F,0xFF,0x7F,0xDF,
0x00,0x80,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x5F,0xFF,0xBF,0xFF,
/*-- 文字: 技 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xF7,0xFB,0xF7,0xFB,0xF7,0xFB,0x40,0x80,0xF7,0xFB,0xD7,0xFB,0x67,0xC0,0x73,0xEF,
0xF4,0xEE,0xF7,0xF6,0xF7,0xF9,0xF7,0xF9,0xF7,0xF6,0x77,0x8F,0x95,0xDF,0xFB,0xFF,
/*-- 文字: 术 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x7F,0xFF,0x7F,0xFB,0x7F,0xF7,0x7F,0xFF,0x00,0x80,0x7F,0xFF,0x3F,0xFE,0x5F,0xFD,
0x5F,0xFB,0x6F,0xF7,0x77,0xE7,0x7B,0x8F,0x7C,0xDF,0x7F,0xFF,0x7F,0xFF,0xFF,0xFF,
/*-- 文字: 有 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x7F,0xFF,0x7F,0xFF,0x01,0x80,0xBF,0xFF,0xDF,0xFF,0x0F,0xF0,0xE7,0xF7,0xEB,0xF7,
0x0D,0xF0,0xEE,0xF7,0xEF,0xF7,0x0F,0xF0,0xEF,0xF7,0xEF,0xF6,0xEF,0xF1,0xEF,0xFB,
/*-- 文字: 限 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xFF,0xFF,0x20,0xE0,0xB6,0xEF,0x36,0xE0,0xBA,0xEF,0xBA,0xEF,0x36,0xE0,0xAE,0xFE,
0xAE,0xED,0xAA,0xF5,0xB6,0xFB,0xBE,0xFB,0xBE,0xF7,0xBE,0x8E,0x3E,0xDF,0xBE,0xFF,
/*-- 文字: 公 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xFF,0xFF,0xDF,0xFD,0x9F,0xFD,0xDF,0xFD,0xEF,0xFB,0xEF,0xF7,0xF7,0xE7,0xBB,0x8F,
0x3D,0xDF,0xBF,0xFF,0xDF,0xFB,0xEF,0xF7,0x77,0xE0,0x03,0xE7,0xF7,0xF7,0xFF,0xFF,
/*-- 文字: 司 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0xFF,0xFF,0x03,0xC0,0xFF,0xDF,0xFF,0xDF,0x01,0xD8,0xFF,0xDF,0xFF,0xDF,0x03,0xDC,
0xFB,0xDD,0xFB,0xDD,0x03,0xDC,0xFB,0xDD,0xFB,0xDF,0xFF,0xD7,0xFF,0xEF,0xFF,0xFF,
};
void main()
{
uchar i,j,n;
while(1)
{
for(j=0;j<13;j++)//共有13个汉字
{
for(n=0;n<40;n++)//每个汉字整屏扫描40次
{
for(i=0;i<16;i++)//16行
{
out1=string[i*2+j*32];
out2=string[i*2+1+j*32];
tt=i%16;
delay(6);
out1=0xff;
out2=0xff;
}
}
}
}
}
- 1
- 2
- 3
- 4
前往页