LCD-12864液晶显示汉字程序

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

#includereg52.h#includeintrins.h#defineucharunsignedchar#defineuintunsignedintsbitLCD_RS=P3^5;//数据和命令端sbitLCD_EN=P3^4;//使能端sbitLCD_RW=P3^3;sbitCS1=P2^1;sbitCS2=P2^2;ucharcodea[]={/*--文字:静--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x22,0xAA,0xAA,0xBF,0xAA,0xAA,0x22,0x80,0xA8,0xA7,0xF4,0xAC,0xA4,0xE0,0x80,0x00,0x00,0xFF,0x0A,0x4A,0x8A,0x7F,0x00,0x00,0x42,0x82,0x7F,0x02,0x02,0x03,0x00,0x00,/*--文字:--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:床--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0xFC,0x44,0x44,0x44,0x44,0xC5,0xFE,0x44,0x44,0x44,0x44,0x44,0x04,0x00,0x80,0x60,0x1F,0x40,0x20,0x18,0x06,0x01,0xFF,0x01,0x02,0x04,0x08,0x30,0x10,0x00,/*--文字:前--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x08,0x08,0xE8,0xA8,0xA9,0xAE,0xEA,0x08,0x08,0xC8,0x0C,0x0B,0xEA,0x08,0x08,0x00,0x00,0x00,0x7F,0x04,0x24,0x44,0x3F,0x00,0x00,0x1F,0x40,0x80,0x7F,0x00,0x00,0x00,/*--文字:明--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xFE,0x22,0x22,0x22,0xFE,0x00,0x00,0xFF,0x11,0x11,0x11,0x11,0xFF,0x00,0x00,0x00,0x03,0x02,0x02,0x02,0x43,0x20,0x18,0x07,0x01,0x01,0x41,0x81,0x7F,0x00,0x00,/*--文字:月--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0xFF,0x11,0x11,0x11,0x11,0x11,0xFF,0x00,0x00,0x00,0x00,0x00,0x40,0x20,0x10,0x0C,0x03,0x01,0x01,0x01,0x21,0x41,0x3F,0x00,0x00,0x00,0x00,/*--文字:光--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x40,0x42,0x44,0x5C,0xC8,0x40,0x7F,0x40,0xC0,0x50,0x4E,0x44,0x60,0x40,0x00,0x00,0x80,0x40,0x20,0x18,0x07,0x00,0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x78,0x00,/*--文字:夜--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x04,0x04,0x84,0xC4,0x3C,0x14,0x85,0x66,0xBC,0x24,0x24,0x24,0xE4,0x24,0x04,0x00,0x02,0x01,0x00,0xFF,0x00,0x82,0x41,0x22,0x14,0x09,0x14,0x23,0x40,0xC0,0x40,0x00,/*--文字:--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:疑--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xC0,0x9F,0xA4,0xA2,0xA2,0x98,0x22,0x22,0x2A,0xF2,0x2A,0x26,0xA2,0x60,0x00,0x86,0x45,0x24,0x1C,0x0F,0x94,0x44,0x30,0x0F,0x10,0x3F,0x22,0x42,0xC2,0x40,0x00,/*--文字:是--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x80,0x80,0x80,0x80,0xBE,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xBE,0x80,0x80,0x80,0x00,0x00,0x40,0x20,0x10,0x0E,0x10,0x20,0x3F,0x44,0x44,0x44,0x44,0x44,0x40,0x40,0x00,/*--文字:地--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x10,0x10,0x10,0xFE,0x10,0x50,0x40,0xFE,0x20,0x20,0xFF,0x10,0x10,0xF8,0x10,0x00,0x20,0x20,0x10,0x1F,0x08,0x08,0x00,0x3F,0x40,0x40,0x4F,0x42,0x44,0x43,0x70,0x00,/*--文字:上--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x60,0x40,0x00,/*--文字:霜--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x0C,0x04,0x55,0xD5,0x55,0x05,0x7F,0x05,0x55,0x55,0x55,0x05,0x0C,0x04,0x00,0x00,0x22,0x1A,0x06,0xFF,0x06,0x0A,0x00,0xFF,0x55,0x55,0x55,0xFF,0x00,0x00,0x00,/*--文字:思--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0xFE,0x92,0x92,0x92,0xFE,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,0x20,0x38,0x00,0x00,0x3C,0x40,0x40,0x42,0x4C,0x40,0x40,0x70,0x04,0x18,0x30,0x00,/*--文字:李--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x80,0x84,0x44,0xC4,0xA4,0x94,0x8C,0xFF,0x8C,0x94,0xA4,0x24,0x44,0xC4,0x40,0x00,0x00,0x04,0x04,0x04,0x04,0x44,0x84,0x7E,0x05,0x04,0x04,0x04,0x04,0x04,0x04,0x00,/*--文字:--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/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,/*--文字:举--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x10,0x10,0x11,0x92,0x5C,0x31,0x12,0xDC,0x10,0x30,0x58,0x97,0x12,0x10,0x10,0x00,0x04,0x02,0x09,0x08,0x09,0x09,0x09,0xFF,0x09,0x09,0x09,0x08,0x09,0x02,0x02,0x00,/*--文字:头--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x12,0x64,0x2C,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x81,0x41,0x21,0x11,0x09,0x05,0x03,0x05,0x19,0x31,0xE1,0x41,0x01,0x00,/*--文字:望--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x04,0x04,0xFC,0x85,0x46,0x24,0x04,0x80,0x7E,0x2A,0x2A,0xAA,0xAA,0xFE,0x00,0x00,0x00,0x40,0x42,0x4A,0x4A,0x4A,0x4A,0x7E,0x4A,0x4A,0x4A,0x4A,0x4A,0x42,0x40,0x00,/*--文字:明--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0xFE,0x22,0x22,0x22,0xFE,0x00,0x00,0xFF,0x11,0x11,0x11,0x11,0xFF,0x00,0x00,0x00,0x03,0x02,0x02,0x02,0x43,0x20,0x18,0x07,0x01,0x01,0x41,0x81,0x7F,0x00,0x00,/*--文字:月--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16--*/0x00,0x00,0x00,0x00,0x00,0xFF,0x11,0x11,0x11,0x11,0x11,0xFF,0x

1 / 9
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功