|
本帖最后由 qizc 于 2016-5-26 15:25 编辑
lcdc.c的修改部分- void LCDC_DisplayString(unsigned int x, unsigned int y, unsigned char fontsize, unsigned short backcolor, unsigned short fc,char *string)
- {
- while (*string)
- {
- switch(fontsize)
- {
- case 0:
- LCDC_DisplayChar(x, y, fontsize, backcolor,fc, *string++);
- x += 6;
- break;
- case 1:
- LCDC_DisplayChar(x, y, fontsize, backcolor,fc, *string++);
- x += 8;
- break;
- default:
- LCDC_DisplayChar(x, y, fontsize, backcolor,fc, *string++);
- x += 8;
- break;
- }
- }
- }
复制代码
|
|