LCD5510PCD8544测试字符汉字图片滚动显示已验证百分百能用.docx
- 文档编号:6606271
- 上传时间:2023-01-08
- 格式:DOCX
- 页数:50
- 大小:32.95KB
LCD5510PCD8544测试字符汉字图片滚动显示已验证百分百能用.docx
《LCD5510PCD8544测试字符汉字图片滚动显示已验证百分百能用.docx》由会员分享,可在线阅读,更多相关《LCD5510PCD8544测试字符汉字图片滚动显示已验证百分百能用.docx(50页珍藏版)》请在冰豆网上搜索。
LCD5510PCD8544测试字符汉字图片滚动显示已验证百分百能用
Font_ASCII_code.c
/*--------------------------------------------------------------*/
//字库码的引索
/*
(0)!
(1)"
(2)#(3)$(4)%(5)&(6)'(7)
((8))(9)*(10)+(11),(12)-(13).(14)/(15)
0(16)1(17)2(18)3(19)4(20)5(21)6(22)7(23)
8(24)9(25):
(26);(27)<(28)=(29)>(30)?
(31)
@(32)A(33)B(34)C(35)D(36)E(37)F(38)G(39)
H(40)I(41)J(42)K(43)L(44)M(45)N(46)O(47)
P(48)Q(49)R(50)S(51)T(52)U(53)V(54)W(55)
X(56)Y(57)Z(58)[(59)\(60)](61)^(62)_(63)
`(64)a(65)b(66)c(67)d(68)e(69)f(70)g(71)
h(72)i(73)j(74)k(75)l(76)m(77)n(78)o(79)
p(80)q(81)r(82)s(83)t(84)u(85)v(86)w(87)
x(88)y(89)z(90){(91)|(92)}(93)~(94)
/*--------------------------------------------------------------*/
/*--------------------------------------------------------------*/
//字体:
LCD1602字体
//取码规则:
低位在前,列行扫描,阴码(1-亮,0-灭)
//查表方法:
要显示的ASCII码-32就可以得到字库码的指针
unsignedcharcodeFont_code[][6]={
{0x00,0x00,0x00,0x00,0x00,0x00},//(0)
{0x00,0x00,0x00,0x4F,0x00,0x00},//!
(1)
{0x00,0x00,0x07,0x00,0x07,0x00},//"
(2)
{0x00,0x14,0x7F,0x14,0x7F,0x14},//#(3)
{0x00,0x24,0x2A,0x7F,0x2A,0x12},//$(4)
{0x00,0x23,0x13,0x08,0x64,0x62},//%(5)
{0x00,0x36,0x49,0x55,0x22,0x50},//&(6)
{0x00,0x00,0x05,0x03,0x00,0x00},//'(7)
{0x00,0x00,0x1C,0x22,0x41,0x00},//((8)
{0x00,0x00,0x41,0x22,0x1C,0x00},//)(9)
{0x00,0x14,0x08,0x3E,0x08,0x14},//*(10)
{0x00,0x08,0x08,0x3E,0x08,0x08},//+(11)
{0x00,0x00,0x50,0x30,0x00,0x00},//,(12)
{0x00,0x08,0x08,0x08,0x08,0x08},//-(13)
{0x00,0x00,0x60,0x60,0x00,0x00},//.(14)
{0x00,0x20,0x10,0x08,0x04,0x02},///(15)
{0x00,0x3E,0x51,0x49,0x45,0x3E},//0(16)
{0x00,0x00,0x42,0x7F,0x40,0x00},//1(17)
{0x00,0x42,0x61,0x51,0x49,0x46},//2(18)
{0x00,0x21,0x41,0x45,0x4B,0x31},//3(19)
{0x00,0x18,0x14,0x12,0x7F,0x10},//4(20)
{0x00,0x27,0x45,0x45,0x45,0x39},//5(21)
{0x00,0x3C,0x4A,0x49,0x49,0x30},//6(22)
{0x00,0x01,0x71,0x09,0x05,0x03},//7(23)
{0x00,0x36,0x49,0x49,0x49,0x36},//8(24)
{0x00,0x06,0x49,0x49,0x29,0x1E},//9(25)
{0x00,0x00,0x36,0x36,0x00,0x00},//:
(26)
{0x00,0x00,0x56,0x36,0x00,0x00},//;(27)
{0x00,0x08,0x14,0x22,0x41,0x00},//<(28)
{0x00,0x14,0x14,0x14,0x14,0x14},//=(29)
{0x00,0x00,0x41,0x22,0x14,0x08},//>(30)
{0x00,0x02,0x01,0x51,0x09,0x06},//?
(31)
{0x00,0x32,0x49,0x79,0x41,0x3E},//@(32)
{0x00,0x7E,0x11,0x11,0x11,0x7E},//A(33)
{0x00,0x7F,0x49,0x49,0x49,0x3E},//B(34)
{0x00,0x3E,0x41,0x41,0x41,0x22},//C(35)
{0x00,0x7F,0x41,0x41,0x22,0x1C},//D(36)
{0x00,0x7F,0x49,0x49,0x49,0x41},//E(37)
{0x00,0x7F,0x09,0x09,0x09,0x01},//F(38)
{0x00,0x3E,0x41,0x49,0x49,0x7A},//G(39)
{0x00,0x7F,0x08,0x08,0x08,0x7F},//H(40)
{0x00,0x00,0x41,0x7F,0x41,0x00},//I(41)
{0x00,0x20,0x40,0x41,0x3F,0x01},//J(42)
{0x00,0x7F,0x08,0x14,0x22,0x41},//K(43)
{0x00,0x7F,0x40,0x40,0x40,0x40},//L(44)
{0x00,0x7F,0x02,0x04,0x02,0x7F},//M(45)
{0x00,0x7F,0x04,0x08,0x10,0x7F},//N(46)
{0x00,0x3E,0x41,0x41,0x41,0x3E},//O(47)
{0x00,0x7F,0x09,0x09,0x09,0x06},//P(48)
{0x00,0x3E,0x41,0x51,0x21,0x5E},//Q(49)
{0x00,0x7F,0x09,0x19,0x29,0x46},//R(50)
{0x00,0x46,0x49,0x49,0x49,0x31},//S(51)
{0x00,0x01,0x01,0x7F,0x01,0x01},//T(52)
{0x00,0x3F,0x40,0x40,0x40,0x3F},//U(53)
{0x00,0x1F,0x20,0x40,0x20,0x1F},//V(54)
{0x00,0x3F,0x40,0x38,0x40,0x3F},//W(55)
{0x00,0x63,0x14,0x08,0x14,0x63},//X(56)
{0x00,0x03,0x04,0x78,0x04,0x03},//Y(57)
{0x00,0x61,0x51,0x49,0x45,0x43},//Z(58)
{0x00,0x00,0x7F,0x41,0x41,0x00},//[(59)
{0x00,0x15,0x16,0x7C,0x16,0x15},//\(60)
{0x00,0x00,0x41,0x41,0x7F,0x00},//](61)
{0x00,0x04,0x02,0x01,0x02,0x04},//^(62)
{0x00,0x40,0x40,0x40,0x40,0x40},//_(63)
{0x00,0x00,0x01,0x02,0x04,0x00},//`(64)
{0x00,0x20,0x54,0x54,0x54,0x78},//a(65)
{0x00,0x7F,0x48,0x44,0x44,0x38},//b(66)
{0x00,0x38,0x44,0x44,0x44,0x20},//c(67)
{0x00,0x38,0x44,0x44,0x48,0x7F},//d(68)
{0x00,0x38,0x54,0x54,0x54,0x18},//e(69)
{0x00,0x08,0x7E,0x09,0x01,0x02},//f(70)
{0x00,0x0C,0x52,0x52,0x52,0x3E},//g(71)
{0x00,0x7F,0x08,0x04,0x04,0x78},//h(72)
{0x00,0x00,0x44,0x7D,0x40,0x00},//i(73)
{0x00,0x20,0x40,0x44,0x3D,0x00},//j(74)
{0x00,0x7F,0x10,0x28,0x44,0x00},//k(75)
{0x00,0x00,0x41,0x7F,0x40,0x00},//l(76)
{0x00,0x7E,0x02,0x0C,0x02,0x7C},//m(77)
{0x00,0x7E,0x04,0x02,0x02,0x7C},//n(78)
{0x00,0x38,0x44,0x44,0x44,0x38},//o(79)
{0x00,0x7C,0x14,0x14,0x14,0x08},//p(80)
{0x00,0x08,0x14,0x14,0x18,0x7C},//q(81)
{0x00,0x7C,0x08,0x04,0x04,0x08},//r(82)
{0x00,0x48,0x54,0x54,0x54,0x20},//s(83)
{0x00,0x04,0x3F,0x44,0x40,0x20},//t(84)
{0x00,0x3C,0x40,0x40,0x20,0x7C},//u(85)
{0x00,0x1C,0x20,0x40,0x20,0x1C},//v(86)
{0x00,0x3C,0x40,0x30,0x40,0x3C},//w(87)
{0x00,0x44,0x28,0x10,0x28,0x44},//x(88)
{0x00,0x0C,0x50,0x50,0x50,0x3C},//y(89)
{0x00,0x44,0x64,0x54,0x4C,0x44},//z(90)
{0x00,0x00,0x08,0x36,0x41,0x00},//{(91)
{0x00,0x00,0x00,0x7F,0x00,0x00},//|(92)
{0x00,0x00,0x41,0x36,0x08,0x00},//}(93)
{0x00,0x08,0x04,0x08,0x10,0x08},//~(94)
{0x00,0x08,0x08,0x2A,0x1C,0x08},//→(127)
{0x00,0x08,0x1C,0x2A,0x08,0x08},//←(128)
{0x00,0x04,0x02,0x7F,0x02,0x04},//↑(129)
{0x00,0x10,0x20,0x7F,0x20,0x10},//↓(130)
{0x00,0x1C,0x2A,0x32,0x2A,0x1C},//笑面(131)
{0x00,0x1C,0x22,0x44,0x22,0x1C}};//爱心(132)
/*--------------------------------------------------------------*/
Font_GBK_code.c
//------------------汉字字模的数据结构定义------------------------//
typedefstructtypFNT_GB16//汉字字模数据结构
{
signedcharIndex[2];//汉字内码索引
charMsk[32];//点阵码数据
};
/////////////////////////////////////////////////////////////////////////
//汉字字模表//
//汉字库:
宋体16.dot纵向取模下高位,数据排列:
从左到右从上到下//
/////////////////////////////////////////////////////////////////////////
structtypFNT_GB16codeGB_16[]=//数据表
{
"我",0x20,0x24,0x24,0x24,0xFE,0x23,0x22,0x20,0xFF,0x20,0x22,0xAC,0x20,0x30,0x20,0x00,
0x00,0x08,0x48,0x84,0x7F,0x02,0x21,0x10,0x09,0x06,0x1A,0x61,0x80,0xE0,0x00,0x00,
"心",0x00,0x00,0xC0,0x00,0xF0,0x00,0x01,0x02,0x1C,0x08,0x00,0x00,0x40,0x80,0x00,0x00,
0x04,0x02,0x01,0x00,0x3F,0x40,0x40,0x40,0x40,0x40,0x40,0x70,0x00,0x00,0x07,0x00,
"永",0x00,0x40,0x40,0x48,0x48,0xC8,0x09,0xFA,0x40,0x80,0x40,0x20,0x30,0x00,0x00,0x00,
0x00,0x20,0x10,0x08,0x06,0x41,0x80,0x7F,0x00,0x01,0x06,0x08,0x10,0x30,0x10,0x00,
"恒",0x80,0x70,0x00,0xFF,0x10,0x22,0xF2,0x92,0x92,0x92,0x92,0x92,0xFB,0x12,0x00,0x00,
0x00,0x00,0x00,0xFF,0x20,0x20,0x27,0x24,0x24,0x24,0x24,0x24,0x27,0x30,0x20,0x00,
"之",0x00,0x10,0x10,0x10,0x10,0x10,0x11,0x16,0x10,0x90,0x50,0x30,0x10,0x00,0x00,0x00,
0x00,0x20,0x10,0x10,0x28,0x48,0x44,0x42,0x41,0x40,0x40,0x40,0x40,0x60,0x20,0x00,
"★",0x00,0x20,0x60,0xE0,0xE0,0xE0,0xF0,0xFC,0xFF,0xFC,0xF0,0xE0,0xE0,0xE0,0x60,0x20,
0x00,0x00,0x40,0x30,0x3D,0x1F,0x1F,0x0F,0x07,0x0F,0x1F,0x1F,0x3D,0x30,0x40,0x00
};
//汉字表:
//我心永恒★
#defineGB_16_numsizeof(GB_16)/34//汉字个数
IMG_code.c
//取码规则:
低位在前,列行扫描,阴码(1-亮,0-灭)
unsignedcharcodepic[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x20,0x20,0xC0,0x70,0x20,0x30,0x20,0x40,0x80,0xC0,0x40,0x20,0x30,0x20,
0x20,0x20,0x50,0xC0,0x80,0x20,0x20,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,0x80,0xC0,0x40,0x40,0x80,0xC0,0x40,0xA0,0x60,0xB0,0xB0,0xD0,0xF0,0x70,0xF0,
0xB0,0x60,0xA0,0x60,0x00,0x00,0x00,0xC0,0x60,0x30,0x18,0x0C,0x04,0x06,0x82,0x46,
0x02,0xE2,0x02,0x02,0x02,0x06,0x06,0x8F,0x8C,0x8F,0x9F,0xB0,0x30,0x74,0x63,0xC0,
0x8E,0x0F,0x0E,0x00,0x00,0x00,0x80,0x80,0xE3,0x1C,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,0x40,0xB8,0x44,0xE2,0x43,0x03,0x06,0xF8,0x45,0xF2,0x1C,0xC7,
0xE2,0x02,0x03,0x02,0x0D,0x3A,0xC5,0x5A,0x00,0x00,0x3F,0xF7,0xC0,0x00,0x00,0x00,
0x3C,0xC2,0x3D,0xC2,0x15,0x40,0x00,0x00,0x00,0x00,0x02,0x03,0x05,0x05,0x07,0x01,
0x06,0x01,0x00,0x00,0x00,0x01,0x03,0x03,0x05,0x0B,0x21,0x9E,0x21,0xDF,0x2C,0xF8,
0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xC0,0x20,0xD0,0xF8,0x90,0x9C,0x97,0x92,0xF4,0xF4,0x0E,0xA2,0x55,
0xAA,0x03,0x5E,0xA8,0x11,0x50,0xB0,0x58,0xAC,0x07,0x79,0x86,0x00,0x00,0x00,0x01,
0x03,0x07,0x0E,0xAC,0xFC,0x59,0xBA,0xF1,0xB6,0x35,0x32,0x34,0xE8,0x30,0x60,0x20,
0x20,0x20,0x30,0xE0,0x30,0x10,0x10,0x18,0x88,0x6C,0x1E,0x03,0x00,0x00,0x01,0xA2,
0x14,0xEA,0x15,0xEA,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xFD,0xA2,0x5D,0xA2,0xFF,0x95,0x6B,0x95,0x69,
0x86,0x58,0xA2,0x55,0xAA,0x40,0xB5,0x4A,0xA0,0x55,0xAA,0xD4,0xA9,0x56,0xA9,0x56,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0E,0x0D,0x3A,0x35,0x6B,0xD6,0xEC,
0x9D,0xEE,0x18,0xE8,0x18,0xE0,0x1C,0xE7,0x14,0xEA,0x96,0xE1,0xD1,0xA8,0xE0,0xE8,
0xF4,0x2A,0x39,0x1A,0x1D,0x0E,0x07,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x06,
0x3F,0x7D,0xFE,0xF9,0xBE,0x39,0x1E,0xBD,0xFC,0x7F,0x3C,0x77,0xCE,0x77,0x8B,0x75,
0x8A,0x75,0x8A,0xF5,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x03,0x0B,0x0F,0x03,0x0D,0x03,0x0C,0x03,0x0C,
0x03,0x0C,0x03,0x0D,0x03,0x0F,0x0E,0x0C,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,0x01,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x08,
0x0F,0x05,0x0A,0x05,0x0A,0x05,0x0A,0x07,//d:
\我的文档\桌面\2009-08-05_100029.bmp0
};
//取码规则:
低位在前,列行扫描,阴码(1-亮,0-灭)
unsignedcharcodepic1[]={//72*14
0x1C,0x08,0xFE,0x08,0x08,0xFA,0xAF,0xFA,0x08,0x00,0x00,0x00,0x80,0x7C,0x80,0x00,
0x00,0x00,0x94,0x56,0x3C,0xD4,0x00,0x38,0x28,0x38,0x00,0x00,0xF4,0x94,0x94,0xDC,
0x00,0x00,0x00,0x00,0xC1,0xFF,0xFC,0x8D,0x3D,0x78,0x00,0x00,0x00,0x00,0x01,0x01,
0x09,0x05,0x1D,0x3D,0x7D,0x7F,0x1B,0x0B,0x83,0xFF,0x7F,0x3F,0x8F,0x87,0x03,0x83,
0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x00,0x00,0x28,0x28,0x28,0x28,0x28,0x29,0x28,0x2B,
0x28,0x28,0x29,0x29,0x28,0x28,0x28,0x29,0x28,0x28,0x28,0x28,0x20,0x04,0x0A,0x12,
0x24,0x12,0x0A,0x2
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- LCD5510PCD8544 测试 字符 汉字 图片 滚动 显示 验证 百分百 能用
![提示](https://static.bdocx.com/images/bang_tan.gif)