微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > 128*64液晶采用“单片机内部显示缓冲“的程序

128*64液晶采用“单片机内部显示缓冲“的程序

时间:11-17 来源:互联网 点击:

-----------------------------------------------------------------------------------------------------------

//字库结构

//汉字
typedefconststruct{

constunsignedcharcha[2];
constunsignedchardata[32];

}character_struct;

character_structChinese_characters_tab[]={
{
{"温"},
{0x08,0x84,0x61,0x0E,0x00,0x7E,0x52,0x52,0x52,0x52,0x52,0x7E,0x00,0x00,0x00,0x00,
0x40,0x7F,0x80,0x02,0xFE,0x82,0x82,0xFE,0x82,0x82,0xFE,0x82,0x82,0xFE,0x02,0x00},
},
{
{"度"},
{0x00,0x00,0x3F,0x20,0x24,0x24,0x3F,0xA5,0x65,0x25,0x3F,0x24,0x24,0x24,0x20,0x00,
0x01,0x06,0xF8,0x01,0x01,0x42,0x62,0x54,0x48,0x48,0x54,0x64,0x42,0x03,0x02,0x00,},
},
//.......................
//结束标志
{
{0xff,0xff},
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,}
},

};
//英文
constunsignedcharcharacter_tab[][17]={

/*--文字:!--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
!,0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xCC,0x0C,0x00,0x00,0x00,
//!,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/*--文字:#--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
#,0x02,0x03,0x1E,0x02,0x03,0x1E,0x02,0x00,0x20,0xFC,0x20,0x20,0xFC,0x20,0x20,0x00,
//#,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
/*--文字:%--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
%,0x0F,0x10,0x0F,0x00,0x07,0x18,0x00,0x00,0x00,0x84,0x38,0xC0,0x78,0x84,0x78,0x00,

/*--文字:*--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
*,0x02,0x02,0x01,0x0F,0x01,0x02,0x02,0x00,0x40,0x40,0x80,0xF0,0x80,0x40,0x40,0x00,

/*--文字:---*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
-,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,

/*--文字:+--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
+,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0xF8,0x80,0x80,0x80,0x00,

/*--文字:=--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
=,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,

/*--文字:[--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
[,0x00,0x00,0x00,0x7F,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0xFE,0x02,0x02,0x02,0x00,

/*--文字:]--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
],0x00,0x40,0x40,0x40,0x7F,0x00,0x00,0x00,0x00,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,

/*--文字:?--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
?,0x00,0x0E,0x12,0x10,0x10,0x10,0x0F,0x00,0x00,0x00,0x00,0x0C,0x6C,0x80,0x00,0x00,

/*--文字:/--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
/,0x00,0x00,0x00,0x00,0x01,0x06,0x18,0x20,0x00,0x06,0x18,0x60,0x80,0x00,0x00,0x00,

/*--文字:\--*/
/*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/
0x5c,0x00,0x30,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x1C,0x03,0x00,

/*--文字:空格--*/
/*--NewCenturySchoolbook12;此字体下对应的点阵为:宽x高=8x16--*/
,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
//摄氏度符号
0xfe,0x18,0x18,0x03,0x04,0x08,0x08,0x08,0x04,0x00,0x00,0xF0,0x08,0x04,0x04,0x04,0x08,
//结束标志
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,

};

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top