我在 FSMC-液晶显示-英文的案例中的ASCII文件里面添加了16*16的汉字字模
const unsigned char FindChineseFont[]=
{"源直流电子负载设置输入调整率压恒模式移动下划线开关加减状态启闭复位双向变换器充电"};
/****************************取模时顺时针旋转90度*************************/
const unsigned char Chinese_16016[][32]=
{
{0x20,0x20,0x7E,0x82,0x0C,0xF0,0x04,0xC8,0x92,0x81,0xFE,0x80,0x90,0xC8,0x04,0x00,
0x08,0x06,0x40,0x31,0x00,0x7F,0x40,0x4F,0x4A,0x5A,0x6A,0x4A,0x4A,0x4F,0x40,0x00},/*"源",0*/
/* (16 X 16 , 宋体 )*/
{0x02,0x02,0x02,0xFE,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0xFE,0x02,0x02,0x02,0x00,
0x00,0x20,0x20,0x2F,0x29,0x29,0x29,0xF9,0x29,0x29,0x29,0x2F,0x20,0x20,0x00,0x00},/*"直",0*/
/* (16 X 16 , 宋体 )*/
{0x20,0x20,0x7E,0x80,0x01,0x02,0x7C,0x00,0x00,0x7F,0x00,0x00,0x7E,0x01,0x07,0x00,
0x08,0x06,0x40,0x31,0x00,0x22,0x26,0x2A,0xB2,0x62,0x22,0x2A,0x26,0x23,0x20,0x00},/*"流",1*/
/* (16 X 16 , 宋体 )*/
·
·
·
省略
} ;
因为没有很多汉字要写,所以不打算用SD卡 只需要简单显示几个汉字就好。
看了F1版块 同样问题帖子里面都没有详细的解释一下汉字的调用。
求一个能在板子上显示汉字的函数 写了一整天了,就是调试不出来,我的是mini板。 |