- #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[] ={
- /*-- 文字: 老 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x02,0x00,0x02,0x08,0x3F,0xD0,0x02,0x20,0x02,0x40,0xFF,0xFE,0x01,0x00,0x02,0x00,
- 0x0C,0x10,0x18,0xE0,0x2F,0x00,0x48,0x08,0x88,0x08,0x08,0x08,0x07,0xF8,0x00,0x00,
- /*-- 文字: 师 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x08,0x00,0x0B,0xFE,0x48,0x20,0x48,0x20,0x48,0x20,0x49,0xFC,0x49,0x24,0x49,0x24,
- 0x49,0x24,0x49,0x24,0x49,0x24,0x09,0x34,0x11,0x28,0x10,0x20,0x20,0x20,0x40,0x20,
- /*-- 文字: 你 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x08,0x80,0x08,0x80,0x08,0x80,0x11,0xFE,0x11,0x02,0x32,0x04,0x34,0x20,0x50,0x20,
- 0x91,0x28,0x11,0x24,0x12,0x24,0x12,0x22,0x14,0x22,0x10,0x20,0x10,0xA0,0x10,0x40,
- /*-- 文字: 好 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x10,0x00,0x10,0xFC,0x10,0x04,0x10,0x08,0xFC,0x10,0x24,0x20,0x24,0x20,0x25,0xFE,
- 0x24,0x20,0x48,0x20,0x28,0x20,0x10,0x20,0x28,0x20,0x44,0x20,0x84,0xA0,0x00,0x40,
- /*-- 文字: 我 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x04,0x40,0x0E,0x50,0x78,0x48,0x08,0x48,0x08,0x40,0xFF,0xFE,0x08,0x40,0x08,0x44,
- 0x0A,0x44,0x0C,0x48,0x18,0x30,0x68,0x22,0x08,0x52,0x08,0x8A,0x2B,0x06,0x10,0x02,
- /*-- 文字: 是 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x1F,0xF0,0x10,0x10,0x10,0x10,0x1F,0xF0,0x10,0x10,0x10,0x10,0x1F,0xF0,0x00,0x00,
- 0xFF,0xFE,0x01,0x00,0x11,0x00,0x11,0xF8,0x11,0x00,0x29,0x00,0x45,0x00,0x83,0xFE,
- /*-- 文字: 魏 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x0C,0x20,0x70,0x40,0x11,0xFC,0xFF,0x24,0x39,0x24,0x55,0xFC,0x93,0x24,0x01,0x24,
- 0x11,0xFC,0xFC,0x40,0x24,0x68,0x44,0xB2,0x28,0xBE,0x11,0x20,0x29,0x22,0xC6,0x1E,
- /*-- 文字: 涛 --*/
- /*-- Fixedsys12; 此字体下对应的点阵为:宽x高=16x16 --*/
- 0x00,0x40,0x20,0x40,0x17,0xFC,0x10,0x40,0x83,0xF8,0x40,0x80,0x47,0xFE,0x10,0x90,
- 0x11,0x10,0x21,0xFE,0xE2,0x10,0x22,0x90,0x24,0x50,0x28,0x10,0x20,0x50,0x00,0x20,
- };
- void main(){
- uchar i,j,n;
- while(1){
- for(j =0; j<8; 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);
- out1=0xff;
- out2 =0xff;
- }
- }
- }
- }
- }
复制代码
|