K230 适配了1920x1080的oled屏幕,4Lan,30fps,图像显示异常

Viewed 367

canmv+rt的sdk,使用canmv ide来编写显示app,图像被压扁了显示,可能是什么原因,屏幕自测是正常的

2 Answers

你好,方便发一下屏幕的mipi dsi配置吗?

可以的,我发在下面了

颜色也显示不出来

{
// 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
},

python测试代码是怎么的

我是用官方提供的测试文件测试的,只修改了type和像素大小