6261D 分辨率的修改?
MAIN_LCD_SIZE = 128X64
修改成 MAIN_LCD_SIZE = 176X220
后,IDEL 主界面显示不正常
请问除了修改这个宏 还要修改其他地方吗、谢谢各位!
貌似还真没了,你屏的分辨率对应上了吗,另外看看刷屏函数
刷屏函数 你说的是这个么?
void LCD_BlockWrite_ST7789S(kal_uint16 startx,kal_uint16 starty,kal_uint16 endx,kal_uint16 endy)
{
//__wfd_lcd_RollbackPortIFSetting(0);
DRV_WriteReg32(LCD_ROI_CMD_ADDR_REG,MAIN_LCD_CMD_ADDR);
DRV_WriteReg32(LCD_ROI_DATA_ADDR_REG,MAIN_LCD_DATA_ADDR);
ASSERT(lcd_assert_fail==KAL_FALSE);
lcd_assert_fail = KAL_TRUE;
#ifdef LQT_SUPPORT/*Do not remove LQT code segment*/
if(!lcd_update_permission&&!(lcd_at_mode==LCD_AT_RELEASE_MODE))
{
lcd_assert_fail = KAL_FALSE;
return;//in LQT mode but not update permitted
}
if(lcd_update_permission&&!(lcd_at_mode==LCD_AT_RELEASE_MODE))
{
startx = 0;
starty = 0;
endx = LCD_WIDTH -1;
endy = LCD_HEIGHT -1; //in LQT mode and update permitted
}
#endif /*LQT_SUPPORT*/
#if defined(MAIN_LCD_16BIT_MODE_RGB888)
SET_LCD_SEND_RES_MODE(1);
#endif
LCD_CtrlWrite_ST7789S(0x2A);
LCD_DataWrite_ST7789S((startx&0xFF00)>>8);
LCD_DataWrite_ST7789S(startx&0xFF);
LCD_DataWrite_ST7789S((endx&0xFF00)>>8);
LCD_DataWrite_ST7789S(endx&0xFF);
LCD_CtrlWrite_ST7789S(0x2B);
LCD_DataWrite_ST7789S((starty&0xFF00)>>8);
LCD_DataWrite_ST7789S(starty&0xFF);
LCD_DataWrite_ST7789S((endy&0xFF00)>>8);
LCD_DataWrite_ST7789S(endy&0xFF);
LCD_CtrlWrite_ST7789S(0x2C);
ENABLE_LCD_TRANSFER_COMPLETE_INT;
DISABLE_LCD_ROI_CTRL_CMD_FIRST;
START_LCD_TRANSFER;
lcd_assert_fail = KAL_FALSE;
}
你在初始化完后,你向屏上刷一个单色,红色或其它的色,看看他显示是否能全屏。
你这个屏的分辨率是QCIF吧?
你屏是用的哪个IC
刷单色是可以全屏刷出来的
ST7789S qvga
qvga 应该是 240*320。
他应该是在大屏上面试小屏的UI。