|

楼主 |
发表于 2017-4-3 20:16:15
|
显示全部楼层
终于找到原因了,我移植时写的LCD_FillWindow,没有加前后两句LCD_SetWindow()调用,加了以后问题解决。
void LCD_FillWindow(U16 sx,U16 sy,U16 ex,U16 ey,U16 color)
{
U32 i,all_point=0;
all_point=(ex-sx+1)*(ey-sy+1);
LCD_SetWindow(sx,sy,ex,ey);
LCD_SetCursor(sx,sy); // Page 58 of SSD2119 datasheet
//预备写GRAM
LCD_REG_ADDRESS = 0x22;
for(i=0; i<all_point; i++)
LCD_DATA_ADDRESS = color;
LCD_SetWindow(0,0,0x13F,0xEF);
} |
|