|
1.uint16_t LCD_GetStrWidth(char *_ptr, FONT_T *_tFont)函数中使用了:
switch(_tFont->FontCode)
{
case FC_RA8875_16:
font_width = g_RA8875_Ascii16_width[code1 - 0x20];
break;
case FC_RA8875_24:
font_width = g_RA8875_Ascii24_width[code1 - 0x20];
break;
case FC_RA8875_32:
font_width = g_RA8875_Ascii32_width[code1 - 0x20];
break;
}
想知道g_RA8875_Ascii16_width、 g_RA8875_Ascii24_width、 g_RA8875_Ascii32_width这三个数组是怎么生成的?
2.void _LCD_ReadAsciiDot(uint8_t _code, uint8_t _fontcode, uint8_t *_pBuf)中使用到的ASC12.c和ASC16.c这两个文件是怎么用的,这里面的数组
内容代表什么含义?应该怎样使用这个数组。解释下
/* 将CPU内部flash中的ascii字符复制到buf */
memcpy(_pBuf, &pAscDot[_code * (font_bytes / 2)], (font_bytes / 2));
谢谢咯,lcd驱动一直就困扰在这几个问题上。 |
|