定义了汉字库
const uchar CHN_CHARACTORS[][28]={
{/*-- 文字: 相 --*///CHN_xiang[]
/*-- 新宋体五号; 此字体下对应的点阵为:宽x高=14x16 --*/
0x08,0x88,0x68,0xFF,0x48,0x88,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,
0x02,0x01,0x00,0x3F,0x00,0x00,0x00,0x3F,0x11,0x11,0x11,0x11,0x3F,0x00,
},
{/*-- 文字: 漏 --*/
/*-- 新宋体11; 此字体下对应的点阵为:宽x高=16x15 --*/
/*-- 高度不是8的倍数,现调整为:宽度x高度=16x16 --*/
0x10,0x22,0x84,0x00,0xFE,0x2A,0xAA,0xAA,0xAA,0xEA,0xAA,0xAA,0xAE,0x00,
0x18,0x06,0x01,0x20,0x1F,0x00,0x3F,0x0A,0x00,0x1F,0x00,0x2A,0x3F,0x00,
},
{/*-- 文字: 电 --*///CHN_dian[]
/*-- 新宋体五号; 此字体下对应的点阵为:宽x高=14x16 --*/
0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,0x07,
0x02,0x02,0x02,0x02,0x1F,0x22,0x22,0x22,0x22,0x23,0x38,0x00
},
{/*-- 文字: 有 --*///CHN_you[]
/*-- 新宋体五号; 此字体下对应的点阵为:宽x高=14x16 --*/
0x84,0x44,0x24,0xF4,0x9C,0x97,0x94,0x94,0x94,0x94,0xF4,0x04,0x04,0x00,0x00,0x00,
0x00,0x3F,0x04,0x04,0x04,0x04,0x24,0x24,0x3F,0x00,0x00,0x00
},
{/*-- 文字: 无 --*///CHN_wu[]
/*-- 新宋体五号; 此字体下对应的点阵为:宽x高=14x16 --*/
0x40,0x42,0x42,0x42,0x42,0xC2,0x7E,0xC2,0x42,0x42,0x42,0x42,0x40,0x00,0x20,0x10,
0x08,0x04,0x02,0x01,0x00,0x1F,0x20,0x20,0x20,0x20,0x38,0x00
},
};
如果没有const限定符 液晶屏就会显示字,反之,如果如上有const则液晶屏不显示汉字 是什么问题? |
|