6577 点屏ILI9806C,只支持VIDEO模式,开机白屏,等会花屏
点亮了。#if 1
memset(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DSI;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
// enable tearing-free
params->dbi.te_mode = LCM_DBI_TE_MODE_VSYNC_ONLY;
params->dbi.te_edge_polarity = LCM_POLARITY_RISING;
params->dsi.mode = SYNC_PULSE_VDO_MODE; //BURST_VDO_MODE;
// DSI
/* Command mode setting */
params->dsi.LANE_NUM = LCM_TWO_LANE;
//The following defined the fomat for data coming from LCD engine.
params->dsi.data_format.color_order = LCM_COLOR_ORDER_RGB;
params->dsi.data_format.trans_seq = LCM_DSI_TRANS_SEQ_MSB_FIRST;
params->dsi.data_format.padding = LCM_DSI_PADDING_ON_LSB;
params->dsi.data_format.format = LCM_DSI_FORMAT_RGB888;
// Video mode setting
params->dsi.intermediat_buffer_num = 2;
params->dsi.PS=LCM_PACKED_PS_24BIT_RGB888;
params->dsi.word_count=480*3; //DSI CMD mode need set these two bellow params, different to 6577
params->dsi.vertical_active_line=854;
params->dsi.vertical_sync_active = 4;
params->dsi.vertical_backporch = 16;
params->dsi.vertical_frontporch = 20;
params->dsi.vertical_active_line = FRAME_HEIGHT;
params->dsi.horizontal_sync_active = 10;
params->dsi.horizontal_backporch = 80; //60
params->dsi.horizontal_frontporch = 80; //200
params->dsi.horizontal_active_pixel = FRAME_WIDTH;
// Bit rate calculation
params->dsi.pll_div1=26; // div1=0,1,2,3;div1_real=1,2,4,4
params->dsi.pll_div2=1; // div2=0,1,2,3;div2_real=1,2,4,4
#endif
多谢 正需要
多谢,正在做tft,非常需要!