我是靠谱客的博主 诚心盼望,最近开发中收集的这篇文章主要介绍汉字点阵c语言程序,用c51单片机控制1616点阵显示汉字源代码,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

#include

#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;

}

}

}

}

}

最后

以上就是诚心盼望为你收集整理的汉字点阵c语言程序,用c51单片机控制1616点阵显示汉字源代码的全部内容,希望文章能够帮你解决汉字点阵c语言程序,用c51单片机控制1616点阵显示汉字源代码所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(33)

评论列表共有 0 条评论

立即
投稿
返回
顶部