canmv+rt的sdk,使用canmv ide来编写显示app,图像被压扁了显示,可能是什么原因,屏幕自测是正常的
canmv+rt的sdk,使用canmv ide来编写显示app,图像被压扁了显示,可能是什么原因,屏幕自测是正常的
{
// this configure is generated by tools.
.connector_name = "***", // maybe should change it
.screen_test_mode = 0,
.dsi_test_mode = 0,
.bg_color = BACKGROUND_BLACK_COLOR,
.intr_line = 10, // 1024 lines
.pixclk_div = 7,
.lan_num = K_DSI_4LAN,
.work_mode = K_BURST_MODE,
.cmd_mode = K_VO_LP_MODE,
.phy_attr = {
.n = 15,
.m = 295,
.voc = 0x17, // 0b00010111
.hs_freq = 0x80 | 0x23, // 0b10100011
},
.resolution = {
.pclk = 74250, // 74250 * 1000 / (1920 + 44 + 148 + 88) / (1080 + 5 + 36 + 5) = 29.97 fps
.phyclk = 445500,
.htotal = (1920 + 44 + 148 + 88), // 2200
.hdisplay = 1920,
.hsync_len = 44,
.hback_porch = 148,
.hfront_porch = 88,
.vtotal = (1080 + 5 + 36 + 5), // 1126
.vdisplay = 1080,
.vsync_len = 5,
.vback_porch = 36,
.vfront_porch = 5,
},
.type = ***, // maybe should change it
},