LCD12864编码显示汉字.pdf

LCD12864编码显示汉字.pdf

ID:58930853

大小:93.41 KB

页数:11页

时间:2020-09-18

LCD12864编码显示汉字.pdf_第1页
LCD12864编码显示汉字.pdf_第2页
LCD12864编码显示汉字.pdf_第3页
LCD12864编码显示汉字.pdf_第4页
LCD12864编码显示汉字.pdf_第5页
资源描述:

《LCD12864编码显示汉字.pdf》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、.#include#include#defineuintunsignedint#defineucharunsignedchar#defineDATAP0//LCD12864数据线sbitRS=P2^2;//数据指令选择sbitRW=P2^1;//读写选择sbitEN=P2^0;//读写使能sbitCS1=P2^3;//片选1sbitCS2=P2^4;//片选2/********************************//*定义中文字库*//********************************/ucharcodeHzk[]={

2、/*--文字:各--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x20,0x20,0x10,0x08,0x8F,0xB4,0x44,0x44,0xA4,0x9C,0x04,0x00,0x00,0x00,0x00,0x02,0x02,0x02,0x01,0x7F,0x42,0x42,0x42,0x42,0x42,0x42,0x7F,0x01,0x03,0x01,0x00,/*--文字:位--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xC0,0x30,0xEC,0x03,0x2A,0xC8,0x09,0x0A,

3、0x0E,0x08,0xE8,0x48,0x08,0x00,0x00,0x01,0x00,0x00,0x7F,0x20,0x20,0x20,0x27,0x20,0x30,0x2E,0x21,0x20,0x20,0x20,0x00,/*--文字:单--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0xF8,0x28,0x29,0x2E,0x2A,0xF8,0x28,0x2C,0x2B,0x2A,0xF8,0x00,0x00,0x00,0x08,0x08,0x0B,0x09,0x09,0x09,0x09,0xFF,0x09,0x09,0x09,

4、0x09,0x0B,0x08,0x08,0x00,/*--文字:机--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x08,0x08,0xC8,0xFF,0x48,0x88,0x08,0x00,0xFE,0x02,0x02,0x02,0xFE,0x00,0x00,0x00,0x04,0x03,0x00,0xFF,0x00,0x41,0x30,0x0C,0x03,0x00,0x00,0x00,0x3F,0x40,0x78,0x00,/*--文字:爱--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x40,0xB2,0x96,

5、0x9A,0x92,0xF6,0x9A,0x93,0x91,0x99,0x97,0x91,0x90,0x30,0x00,0x40,0x20,0xA0,0x90,0x4C,0x47,0x2A,0x2A,0x12,0x1A,0x26,0x22,0x40,0xC0,0x40,0x00,../*--文字:好--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x10,0x10,0xF0,0x1F,0x10,0xF0,0x80,0x82,0x82,0x82,0xF2,0x8A,0x86,0x82,0x80,0x00,0x80,0x43,0x22,0x14,0x0C,0x7

6、3,0x20,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,/*--文字:者--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x20,0x24,0x24,0x24,0x24,0xA4,0xBF,0x64,0x24,0x34,0x28,0x26,0x24,0x20,0x00,0x04,0x04,0x04,0x02,0x02,0xFF,0x49,0x49,0x49,0x49,0x49,0x49,0xFF,0x00,0x00,0x00,/*--文字:你--*//*--宋体12;此字体下对应的点阵为:宽x高=16

7、x16--*/0x80,0x40,0xF0,0x2C,0x43,0x20,0x98,0x0F,0x0A,0xE8,0x08,0x88,0x28,0x1C,0x08,0x00,0x00,0x00,0x7F,0x00,0x10,0x0C,0x03,0x21,0x40,0x3F,0x00,0x00,0x03,0x1C,0x08,0x00,/*--文字:们--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x80,0x40,0xF0,0x1

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。