汉字字模如下:
0x01,0xF0,0x21,0x10,0x11,0x10,0x11,0x10,//0"设",
0x01,0x10,0x02,0x0E,0xF4,0x00,0x13,0xF8,
0x11,0x08,0x11,0x10,0x10,0x90,0x10,0xA0,
0x14,0x40,0x18,0xB0,0x13,0x0E,0x0C,0x04,
0x02,0x00,0x01,0x00,0x7F,0xFE,0x40,0x02,//1"定",
0x80,0x24,0x1F,0xF0,0x01,0x00,0x01,0x00,
0x11,0x20,0x11,0xF0,0x11,0x00,0x11,0x00,
0x11,0x00,0x29,0x06,0x47,0xFC,0x80,0x00
0x02,0x00,0x01,0x00,0x7F,0xFE,0x48,0x02,//2"实",
0x86,0x84,0x02,0x80,0x10,0x80,0x0C,0x80,
0x04,0x84,0xFF,0xFE,0x01,0x00,0x01,0x40,
0x02,0x20,0x04,0x10,0x18,0x0C,0x60,0x04,
0x00,0x08,0x7D,0xFC,0x44,0x00,0x48,0x00,//3"际",
0x48,0x00,0x50,0x04,0x4B,0xFE,0x48,0x20,
0x44,0x20,0x44,0xA8,0x44,0xA4,0x69,0x22,
0x52,0x22,0x40,0x20,0x40,0xA0,0x40,0x40,
在网上下载了一些代码测试,仍无法正常显示,请问谁有这方面的C语言原代码,最好是亲自测试通过的,谢谢!
sorry, 液晶屏是1602
LCD引脚号 引脚功能 程序中对应的单片机引脚
1 GND (接电源GND)
2 VCC (接电源VCC)
3 VL
4 RS - > P1.2
5 RW - > P1.1
6 E - > P1.0
7 D0 - 〉 P2.0
8 D1 - 〉 P2.1
9 D2 - 〉 P2.2
10 D3 - 〉 P2.3
11 D4 - 〉 P2.4
12 D5 - 〉 P2.5
13 D6 - 〉 P2.6
14 D7 - 〉 P2.7
15 BLA (接电源VCC)
16 BLK (接电源GND)
我知道这款液晶本身没有中文字符的,不过可以根据字模点阵的方法实现中文显示。
我现在就是想通过单片机读取字模数据的,字模数组的定义如下:
unsigned char code DefHz[]=
{
0x01,0xF0,0x21,0x10,0x11,0x10,0x11,0x10,//0"设",
0x01,0x10,0x02,0x0E,0xF4,0x00,0x13,0xF8,
0x11,0x08,0x11,0x10,0x10,0x90,0x10,0xA0,
0x14,0x40,0x18,0xB0,0x13,0x0E,0x0C,0x04,
0x02,0x00,0x01,0x00,0x7F,0xFE,0x40,0x02,//1"定",
0x80,0x24,0x1F,0xF0,0x01,0x00,0x01,0x00,
0x11,0x20,0x11,0xF0,0x11,0x00,0x11,0x00,
0x11,0x00,0x29,0x06,0x47,0xFC,0x80,0x00
0x02,0x00,0x01,0x00,0x7F,0xFE,0x48,0x02,//2"实",
0x86,0x84,0x02,0x80,0x10,0x80,0x0C,0x80,
0x04,0x84,0xFF,0xFE,0x01,0x00,0x01,0x40,
0x02,0x20,0x04,0x10,0x18,0x0C,0x60,0x04,
0x00,0x08,0x7D,0xFC,0x44,0x00,0x48,0x00,//3"际",
0x48,0x00,0x50,0x04,0x4B,0xFE,0x48,0x20,
0x44,0x20,0x44,0xA8,0x44,0xA4,0x69,0x22,
0x52,0x22,0x40,0x20,0x40,0xA0,0x40,0x40,
}