3510i.h
上传用户:hzhsqp
上传日期:2022-07-28
资源大小:37k
文件大小:34k
- //接口定义
- sbit cs=P2^0; //片选
- sbit rest=P2^1; //复位
- sbit sdata=P2^3; //数据
- sbit sclk=P2^4; //时钟
- unsigned char Ver='A'; //驱动版本,默认为A版本,一共4个版本
- //8*12字符
- unsigned char code zifu[]={
- /*-- 文字: --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: ! --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x20,0x00,0x00,
- /*-- 文字: " --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x28,0x50,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: # --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x28,0x28,0xFC,0x28,0x50,0xFC,0x50,0x50,0x00,0x00,
- /*-- 文字: $ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x20,0x78,0xA8,0xA0,0x60,0x30,0x28,0xA8,0xF0,0x20,0x00,
- /*-- 文字: % --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x48,0xA8,0xB0,0x50,0x28,0x34,0x54,0x48,0x00,0x00,
- /*-- 文字: & --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x50,0x50,0x78,0xA8,0xA8,0x90,0x6C,0x00,0x00,
- /*-- 文字: ' --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x40,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: ( --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x04,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x08,0x04,0x00,
- /*-- 文字: ) --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x40,0x20,0x10,0x10,0x10,0x10,0x10,0x10,0x20,0x40,0x00,
- /*-- 文字: * --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x20,0xA8,0x70,0x70,0xA8,0x20,0x00,0x00,0x00,
- /*-- 文字: + --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x20,0x20,0xF8,0x20,0x20,0x20,0x00,0x00,0x00,
- /*-- 文字: , --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x80,
- /*-- 文字: - --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: . --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,
- /*-- 文字: / --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x08,0x10,0x10,0x10,0x20,0x20,0x40,0x40,0x40,0x80,0x00,
- /*-- 文字: 0 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x88,0x88,0x88,0x88,0x70,0x00,0x00,
- /*-- 文字: 1 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x60,0x20,0x20,0x20,0x20,0x20,0x70,0x00,0x00,
- /*-- 文字: 2 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x10,0x20,0x40,0x80,0xF8,0x00,0x00,
- /*-- 文字: 3 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x08,0x30,0x08,0x08,0x88,0x70,0x00,0x00,
- /*-- 文字: 4 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x10,0x30,0x50,0x50,0x90,0x78,0x10,0x18,0x00,0x00,
- /*-- 文字: 5 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x80,0x80,0xF0,0x08,0x08,0x88,0x70,0x00,0x00,
- /*-- 文字: 6 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x90,0x80,0xF0,0x88,0x88,0x88,0x70,0x00,0x00,
- /*-- 文字: 7 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x90,0x10,0x20,0x20,0x20,0x20,0x20,0x00,0x00,
- /*-- 文字: 8 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x70,0x88,0x88,0x88,0x70,0x00,0x00,
- /*-- 文字: 9 --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x88,0x78,0x08,0x48,0x70,0x00,0x00,
- /*-- 文字: : --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x20,0x00,0x00,
- /*-- 文字: ; --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x20,0x20,0x00,
- /*-- 文字: < --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x04,0x08,0x10,0x20,0x40,0x20,0x10,0x08,0x04,0x00,0x00,
- /*-- 文字: = --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0xF8,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,
- /*-- 文字: > --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x40,0x20,0x10,0x08,0x04,0x08,0x10,0x20,0x40,0x00,0x00,
- /*-- 文字: ? --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x10,0x20,0x20,0x00,0x20,0x00,0x00,
- /*-- 文字: @ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x98,0xA8,0xA8,0xB8,0x80,0x78,0x00,0x00,
- /*-- 文字: A --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x20,0x30,0x50,0x50,0x78,0x48,0xCC,0x00,0x00,
- /*-- 文字: B --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF0,0x48,0x48,0x70,0x48,0x48,0x48,0xF0,0x00,0x00,
- /*-- 文字: C --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x78,0x88,0x80,0x80,0x80,0x80,0x88,0x70,0x00,0x00,
- /*-- 文字: D --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF0,0x48,0x48,0x48,0x48,0x48,0x48,0xF0,0x00,0x00,
- /*-- 文字: E --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x48,0x50,0x70,0x50,0x40,0x48,0xF8,0x00,0x00,
- /*-- 文字: F --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x48,0x50,0x70,0x50,0x40,0x40,0xE0,0x00,0x00,
- /*-- 文字: G --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x38,0x48,0x80,0x80,0x9C,0x88,0x48,0x30,0x00,0x00,
- /*-- 文字: H --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xCC,0x48,0x48,0x78,0x48,0x48,0x48,0xCC,0x00,0x00,
- /*-- 文字: I --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x20,0x20,0x20,0x20,0x20,0x20,0xF8,0x00,0x00,
- /*-- 文字: J --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x7C,0x10,0x10,0x10,0x10,0x10,0x10,0x90,0xE0,0x00,
- /*-- 文字: K --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xEC,0x48,0x50,0x60,0x50,0x50,0x48,0xEC,0x00,0x00,
- /*-- 文字: L --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xE0,0x40,0x40,0x40,0x40,0x40,0x44,0xFC,0x00,0x00,
- /*-- 文字: M --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xD8,0xD8,0xD8,0xD8,0xA8,0xA8,0xA8,0xA8,0x00,0x00,
- /*-- 文字: N --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xDC,0x48,0x68,0x68,0x58,0x58,0x48,0xE8,0x00,0x00,
- /*-- 文字: O --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x88,0x88,0x88,0x88,0x70,0x00,0x00,
- /*-- 文字: P --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF0,0x48,0x48,0x70,0x40,0x40,0x40,0xE0,0x00,0x00,
- /*-- 文字: Q --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x70,0x88,0x88,0x88,0x88,0xE8,0x98,0x70,0x18,0x00,
- /*-- 文字: R --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF0,0x48,0x48,0x70,0x50,0x48,0x48,0xEC,0x00,0x00,
- /*-- 文字: S --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x78,0x88,0x80,0x60,0x10,0x08,0x88,0xF0,0x00,0x00,
- /*-- 文字: T --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0xA8,0x20,0x20,0x20,0x20,0x20,0x70,0x00,0x00,
- /*-- 文字: U --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xCC,0x48,0x48,0x48,0x48,0x48,0x48,0x30,0x00,0x00,
- /*-- 文字: V --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xCC,0x48,0x48,0x50,0x50,0x30,0x20,0x20,0x00,0x00,
- /*-- 文字: W --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xA8,0xA8,0xA8,0x70,0x50,0x50,0x50,0x50,0x00,0x00,
- /*-- 文字: X --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xD8,0x50,0x50,0x20,0x20,0x50,0x50,0xD8,0x00,0x00,
- /*-- 文字: Y --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xD8,0x50,0x50,0x20,0x20,0x20,0x20,0x70,0x00,0x00,
- /*-- 文字: Z --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xF8,0x90,0x10,0x20,0x20,0x40,0x48,0xF8,0x00,0x00,
- /*-- 文字: [ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x38,0x00,
- /*-- 文字: --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x40,0x40,0x40,0x20,0x20,0x10,0x10,0x10,0x08,0x00,0x00,
- /*-- 文字: ] --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x70,0x00,
- /*-- 文字: ^ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x20,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: _ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,
- /*-- 文字: ` --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- /*-- 文字: a --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x30,0x48,0x38,0x48,0x3C,0x00,0x00,
- /*-- 文字: b --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xC0,0x40,0x40,0x70,0x48,0x48,0x48,0x70,0x00,0x00,
- /*-- 文字: c --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x38,0x48,0x40,0x40,0x38,0x00,0x00,
- /*-- 文字: d --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x18,0x08,0x08,0x38,0x48,0x48,0x48,0x3C,0x00,0x00,
- /*-- 文字: e --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x30,0x48,0x78,0x40,0x38,0x00,0x00,
- /*-- 文字: f --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x1C,0x20,0x20,0x78,0x20,0x20,0x20,0x78,0x00,0x00,
- /*-- 文字: g --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x3C,0x48,0x30,0x40,0x78,0x44,0x38,
- /*-- 文字: h --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xC0,0x40,0x40,0x70,0x48,0x48,0x48,0xEC,0x00,0x00,
- /*-- 文字: i --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x20,0x00,0x00,0x60,0x20,0x20,0x20,0x70,0x00,0x00,
- /*-- 文字: j --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x10,0x00,0x00,0x30,0x10,0x10,0x10,0x10,0x10,0xE0,
- /*-- 文字: k --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xC0,0x40,0x40,0x5C,0x50,0x70,0x48,0xEC,0x00,0x00,
- /*-- 文字: l --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0xE0,0x20,0x20,0x20,0x20,0x20,0x20,0xF8,0x00,0x00,
- /*-- 文字: m --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xF0,0xA8,0xA8,0xA8,0xA8,0x00,0x00,
- /*-- 文字: n --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xF0,0x48,0x48,0x48,0xEC,0x00,0x00,
- /*-- 文字: o --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x30,0x48,0x48,0x48,0x30,0x00,0x00,
- /*-- 文字: p --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xF0,0x48,0x48,0x48,0x70,0x40,0xE0,
- /*-- 文字: q --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x38,0x48,0x48,0x48,0x38,0x08,0x1C,
- /*-- 文字: r --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xD8,0x60,0x40,0x40,0xE0,0x00,0x00,
- /*-- 文字: s --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x78,0x40,0x30,0x08,0x78,0x00,0x00,
- /*-- 文字: t --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x20,0x20,0x70,0x20,0x20,0x20,0x18,0x00,0x00,
- /*-- 文字: u --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xD8,0x48,0x48,0x48,0x3C,0x00,0x00,
- /*-- 文字: v --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xEC,0x48,0x50,0x30,0x20,0x00,0x00,
- /*-- 文字: w --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xA8,0xA8,0x70,0x50,0x50,0x00,0x00,
- /*-- 文字: x --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xD8,0x50,0x20,0x50,0xD8,0x00,0x00,
- /*-- 文字: y --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0xEC,0x48,0x50,0x30,0x20,0x20,0xC0,
- /*-- 文字: z --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x00,0x00,0x00,0x00,0x78,0x10,0x20,0x20,0x78,0x00,0x00,
- /*-- 文字: { --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x18,0x10,0x10,0x10,0x20,0x10,0x10,0x10,0x10,0x18,0x00,
- /*-- 文字: | --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
- /*-- 文字: } --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x00,0x60,0x20,0x20,0x20,0x10,0x20,0x20,0x20,0x20,0x60,0x00,
- /*-- 文字: ~ --*/
- /*-- 宋体9; 此字体下对应的点阵为:宽x高=6x12 --*/
- /*-- 宽度不是8的倍数,现调整为:宽度x高度=8x12 --*/
- 0x40,0xA4,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
-
- };
- //16*16汉字
- unsigned char code hanzi[]={
- /*---------------雨----------------*/
- 0x00,0x4F,0xFE,0x4,0x7,0xFC,0x66,0x45,0x54,0x44,0x46,0x64,0x55,0x44,0x44,0x45,
- 0xC0,0x00,
- /*---------------亭----------------*/
- 0x04,0x07,0xFC,0x00,0x01,0xF8,0x10,0x8F,0xFE,0x80,0x23,0xF8,0x04,0x00,0x40,0x1C,
- 0x00,0x00,
- /*---------------电----------------*/
- 0x04,0x00,0x44,0x7F,0xE4,0x44,0x7F,0xC4,0x44,0x44,0x47,0xFC,0x44,0x00,0x42,0x03,
- 0xE0,0x00,
- /*---------------子----------------*/
- 0x7F,0xC0,0x08,0x01,0x00,0x60,0x04,0x4F,0xFE,0x04,0x00,0x40,0x04,0x00,0x40,0x1C,
- 0x00,0x00,
- /*---------------我----------------*/
- 0x0A,0x8F,0x24,0x12,0x0F,0xFE,0x12,0x01,0x64,0x3A,0x8D,0x10,0x13,0x21,0xCA,0x70,
- 0x60,0x00,
- /*---------------是----------------*/
- 0x1F,0x81,0x08,0x1F,0x81,0x08,0x1F,0x80,0x00,0xFF,0xE2,0x40,0x37,0xC4,0xC0,0x87,
- 0xE0,0x00,
- /*---------------企----------------*/
- 0x04,0x00,0x60,0x09,0x01,0x08,0x24,0x6C,0x40,0x17,0x81,0x40,0x14,0x01,0x40,0xFF,
- 0xE0,0x00,
- /*---------------鹅----------------*/
- 0x30,0x8D,0xBC,0x52,0x4F,0xB4,0x52,0xC7,0x60,0xDB,0xE5,0x02,0x6B,0xE4,0xA2,0xC6,
- 0xC0,0x00,
- /*---------------我----------------*/
- 0x0A,0x8F,0x24,0x12,0x0F,0xFE,0x12,0x01,0x64,0x3A,0x8D,0x10,0x13,0x21,0xCA,0x70,
- 0x60,0x00,
- /*---------------怕----------------*/
- 0x21,0x02,0x20,0x27,0xEB,0x42,0xAC,0x2A,0x42,0x27,0xE2,0x42,0x24,0x22,0x42,0x27,
- 0xE0,0x00,
- /*---------------谁----------------*/
- 0x45,0x02,0x48,0x0F,0xE0,0xC8,0xD7,0xE4,0x48,0x44,0x84,0x7E,0x54,0x86,0x7E,0x04,
- 0x00,0x00,
- /*-------------------------------*/
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,
- };
- //40*40图片
- unsigned char code img[1600] = { /* 0X08,0X08,0X28,0X00,0X28,0X00, */
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XDB,0X92,0X6D,0X45,0X24,0X24,0X24,0X24,0X49,
- 0X92,0XB6,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XDB,0X6D,0X24,
- 0X00,0X24,0X24,0X24,0X24,0X24,0X24,0X24,0X00,0X00,0X49,0X92,0XDB,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0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,0X49,0X49,0X49,0XB6,
- 0XFF,0XDB,0X92,0X92,0X49,0X92,0XDB,0X6D,0XFF,0XDB,0X49,0X24,0X24,0X24,0X24,0X00,
- 0X24,0XDB,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0X6D,0X00,0X24,0X49,0X49,0X49,0X49,0XDB,0XFF,0XB6,0X00,0X49,0X49,0XB6,0X92,0X6D,
- 0X6D,0XFF,0X6D,0X24,0X24,0X24,0X24,0X00,0X00,0X92,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XDB,0X24,0X24,0X24,0X49,0X49,0X49,0X49,0XB6,
- 0XFF,0XDB,0X49,0X92,0X49,0X92,0XFF,0XFF,0XFF,0XDB,0X49,0X24,0X24,0X24,0X24,0X24,
- 0X00,0X49,0XDB,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XB6,
- 0X20,0X24,0X49,0X49,0X49,0X49,0X49,0X92,0XFF,0XFF,0XFF,0X92,0X24,0X49,0XFF,0XFF,
- 0XFF,0XDB,0X24,0X24,0X24,0X24,0X24,0X24,0X00,0X24,0XDB,0XFF,0XFF,0XFF,0XFF,0XFF,
- 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0X92,0X00,0X24,0X49,0X49,0X49,0X49,0X49,0X49,
- 0XB6,0XDB,0X96,0X49,0X25,0X25,0X72,0XDB,0XBB,0X6D,0X24,0X24,0X24,0X24,0X24,0X24,
- 0X00,0X24,0XB6,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0X4D,
- 0X04,0X24,0X49,0X49,0X49,0X49,0X49,0X49,0X49,0X6D,0X68,0X6C,0X8C,0X8C,0X68,0X6D,
- 0X49,0X24,0X25,0X24,0X24,0X24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,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
- };
- void delayms(unsigned int ii)//1ms延时函数
- {
-
- unsigned int i,x;
- for (x=0;x<ii;x++)
- {
- for (i=0;i<100;i++);
- }
- }
- void send(unsigned char value, unsigned char cd) //写8位数据
- {
- unsigned char i,dt;
- cs=0;
- sclk=0;
- if(cd == 0)
- sdata=0;
- else
- sdata=1;
- sclk=1;
- dt=value;
- for(i=0;i<8;i++)
- {
- sclk=0;
- if(dt&0x80)
- sdata=1;
- else
- sdata=0;
- dt=dt<<1;
- sclk=1;
- }
- cs=1;
- }
- void readdata() //读数据
- {
- unsigned char i,j;
- unsigned char ch[6];
- send(0x09, 0); // 读数据
- cs=0;
- sclk=0;
- for (i=0;i<6;i++)
- {
- ch[i]=0;
- for (j=0;j<8;j++)
- {
-
- sclk=1;
- if (sdata==0)
- {
- ch[i]=ch[i]|(1<<(7-j));
- }
- sclk=0;
- }
- }
- switch(ch[0])
- {
- case 255:
- Ver='A';
- break;
- case 127:
- Ver='B';
- break;
- case 0:
- if(ch[1]+ch[2]+ch[3]==0)
- {
- Ver='D';
- }else
- {
- Ver='C';
- }
- break;
- }
- cs=1;
- }
- void LCD_Initialize() //LCD初始化
- {
- unsigned char i;
- rest=1;
- cs=1;
- sdata=0;
- sclk=1;
- rest=0;
- delayms(50);
- rest=1;
- delayms(50);
-
- send(0x00, 0); // NOP
- delayms(5);
- send(0x01, 0); // LCD Software Reset
- delayms(5);
-
- send(0xC6, 0); // Initial Escape
-
- send(0xB9, 0); // Refresh set
- send(0x00, 1);
- readdata(); //读出数据
-
- send(0xB5, 0); // Gamma Curve Set
- send(0x01, 1);
- send(0xbd, 0); //common driver output select//很重要的
- if(Ver=='D')
- {
- send(0x04, 1);
- }else
- {
- send(0x00, 1);
- }
- send(0xBE, 0); // Power Control
- send(0x03, 1);
-
- send(0x11, 0); // Sleep out
- send(0xBA, 0); // Power Control
- send(0x7F, 1);
- send(0x03, 1);
-
- send(0x36, 0); // 扫描方式
- if (Ver=='A')
- {
- send(0x00|0x08,1); //RGB
- }
- else
- {
- send(0x00,1); //RGB
- }
-
- send(0xB7, 0); // Temperature gradient set
- for(i=0; i<14; i++)
- {
- send(0, 1);
- }
- send(0x29, 0); //display ON
-
- send(0x03, 0); // Booster Voltage ON
-
- delayms(20); // Booster Voltage stabilisieren lassen
-
- send(0x20, 0); //display inversion OFF
- send(0x25, 0); // Write contrast
- switch(Ver) //对比度设置
- {
- case 'A':
- send(70, 1); //对比度设置
- break;
- case 'B':
- send(67, 1); //对比度设置
- break;
- case 'C':
- //send(74, 1);
- send(66, 1);
- // send(64, 1); //对比度设置
- break;
- case 'D': //对比度设置
- send(49, 1);
- break;
-
- }
-
- }
- //************************
- //颜色模式设置:color=1为4096色模式
- // :color=0为256色模式
- //************************
- void LCD_ColorSet(unsigned char Color)
- {
- if (Color==1) {
- send(0x3a, 0); //interface pixel format
- send(0x03, 1); //0x03 为4096色,0x02为256色
-
- }
- else
- {
- send(0x3a, 0); //interface pixel format
- send(0x02, 1); //0x03 为4096色,0x02为256色
-
- send(0x2d, 0); //调色板设置
- if (Ver=='B'||Ver=='C')
- {
- //red
- send(~0x00, 1);
- send(~0x02, 1);
- send(~0x03, 1);
- send(~0x04, 1);
- send(~0x05, 1);
- send(~0x06, 1);
- send(~0x08, 1);
- send(~0x0f, 1);
-
- //green
- send(~0x00, 1);
- send(~0x02, 1);
- send(~0x03, 1);
- send(~0x04, 1);
- send(~0x05, 1);
- send(~0x06, 1);
- send(~0x08, 1);
- send(~0x0f, 1);
- //blue
- send(~0x00, 1);
- send(~0x03, 1);
- send(~0x06, 1);
- send(~0x0f, 1);
- }else
- {
- //red
- send(0x00, 1);
- send(0x02, 1);
- send(0x03, 1);
- send(0x04, 1);
- send(0x05, 1);
- send(0x06, 1);
- send(0x08, 1);
- send(0x0f, 1);
-
- //green
- send(0x00, 1);
- send(0x02, 1);
- send(0x03, 1);
- send(0x04, 1);
- send(0x05, 1);
- send(0x06, 1);
- send(0x08, 1);
- send(0x0f, 1);
- //blue
- send(0x00, 1);
- send(0x03, 1);
- send(0x06, 1);
- send(0x0f, 1);
- }
-
- }
- }
- void addset(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2) //坐标设置 4个参数依次为开始X,开始Y,结束x,结束Y
- {
- send(0x2a,0 );//column address set
- send(x1,1 );
- send(x2,1 );
- send(0x2B,0 );//page address set
- send(y1,1 );
- send(y2,1 );
- send(0x2C,0 );//memory write
- }
- //************************
- //清屏:color=1为4096色模式清屏
- // :color=0为256色模式清屏
- //************************
- void LCD_Clear(unsigned int value,unsigned char Color)
- {
- unsigned char x, y;
- addset(0,0,97,66);
- if (Color==1)
- {
- for(y = 0; y < 67; y ++)
- {
- for(x = 0; x < 49;x ++)
- { send(value>>4,1);
- send(((value&0x0f)<<4)|(value>>8),1);
- send(value,1);
- }
- }
- }
- else
- {
- for(y = 0; y < 67; y ++)
- {
- for(x = 0; x < 98; x ++)
- {
- send(value,1);
- }
- }
- }
- }
- //在指定位置显示一个字符(8*12大小)
- //dcolor为内容颜色,gbcolor为背静颜色
- void showzifu(unsigned char x,unsigned char y,unsigned char value,unsigned char dcolor,unsigned char bgcolor)
- {
- unsigned char i,j;
- unsigned char *temp=zifu;
- addset(x,y,x+7,y+11); //设置区域
- temp+=(value-32)*12;
- for(j=0;j<12;j++)
- {
- for(i=0;i<8;i++)
- {
- if((*temp&(1<<(7-i)))!=0)
- {
- send(dcolor,1);
- }
- else
- {
- send(bgcolor,1);
- }
- }
- temp++;
- }
- }
- //在指定位置显示一个字符串(8*12大小)
- //dcolor为内容颜色,gbcolor为背静颜色
- void showzifustr(unsigned char x,unsigned char y,unsigned char *str,unsigned char dcolor,unsigned char bgcolor)
- {
- unsigned char x1,y1;
- x1=x;
- y1=y;
- while(*str!=' ')
- {
- showzifu(x1,y1,*str,dcolor,bgcolor);
- x1+=7;
- str++;
- }
- }
- //在指定位置显示一个汉字(12*12大小)
- //dcolor为内容颜色,gbcolor为背静颜色
- void showhanzi(unsigned char x,unsigned char y,unsigned char value,unsigned char dcolor,unsigned char bgcolor)
- {
- unsigned char i,j;
- unsigned char *temp=hanzi;
- addset(x,y,x+11,y+11); //设置区域
- temp+=value*18;
- for(j=0;j<18;j++)
- {
- for(i=0;i<8;i++)
- {
- if((*temp&(1<<(7-i)))!=0)
- {
- send(dcolor,1);
- }
- else
- {
- send(bgcolor,1);
- }
- }
- temp++;
- }
- }