const char HuanYin[] PROGMEM = "欢迎"; const char Qiangdao[] PROGMEM = "签到"; . . . const char DengJiHaoMa[] PROGMEM = "登记号码:";
PGM_P ChineseFont[] PROGMEM={ HuanYin, //0"欢迎" Qiangdao, //1"签到". . . DengJiHaoMa,//64"登记号码:" } 在调用时如下结果正常 unsigned char *charPoint; charPoint=ChineseFont[1]; 但如果是如下就结果错误 unsigned char *charPoint,p=1; charPoint=ChineseFont[p];
为什么加变量进去结果就错,我搞AVR不久,之前一至搞PIC 没有此问题,请教各位怎样解决此问题。
|