LZ大侠我看过你曾经写过一段程序发现有部分判断不出来啊!
若汉字的内码为0xd000就判断不出来了。
if(sucWord[0] > 0x80 && sucWord[1] > 0x80)
{ //if HZ
LCD_GetHZDot(sucWord[0],sucWord[1],ucHzDot); //获取汉字的点 阵
ucX = ucCharRow*2;
ucY = ucCharCol*8;
for(uci = 0; uci<2; uci++)
{
for(ucj =0;ucj<16; ucj++)
{
i0 = disp_data[ii];
lcd_row_col_data(ucX,ucY,i0);
ii++;
ucY++;
}
ucX++;
ucY -= 16;
}
}
else
{ //if english
LCD_GetEnglishCharDot(sucWord[1],ucHzDot);
ucX = ucCharRow*2;
ucY = ucCharCol*8;
for(uci = 0; uci<2; uci++)
{
for(ucj =0;ucj<8; ucj++)
{
i0 = disp_data[ii];
lcd_row_col_data(ucX,ucY,i0);
ii++;
ucY++;
}
ucX++;
ucY -= 8;
}
} |