您尚未登录。

楼主 # 2025-01-28 11:41:54

panyuxi
会员
注册时间: 2025-01-23
已发帖子: 3
积分: 3

7寸lVDS 1024X600 LVDS DEMO 旋转错误(不旋转时,显示触摸都正常)

立创衡山派D133EBS开发板
7寸lVDS 1024X600 LVDS DEMO 旋转错误(不旋转时,显示触摸都正常),提示信息如下:

info: cmd ring buf size:2048
[Error] (0.000, +0)      lv_port_disp_init: create draw buffer failed lv_port_disp.aic /> c:289
CPU Exception: NO.5
x1: 400354f0    x2: 401e9ad0    x3: 401d3a84    x4: deadbeef
x5: 40001b00    x6: 0002012c    x7: ffffffff    x8: 401d6920
x9: deadbeef    x10: 00000000   x11: 0000001c   x12: 00000000
x13: 00000000   x14: 401e9b60   x15: ffffffff   x16: 30046160
x17: 401d629c   x18: deadbeef   x19: deadbeef   x20: deadbeef
x21: deadbeef   x22: deadbeef   x23: deadbeef   x24: deadbeef
x25: deadbeef   x26: deadbeef   x27: deadbeef   x28: 3013ffe8
x29: deadbeef   x30: 00000000   x31: 00000000
mcause : 38000005
mtval  : 00000028
mepc   : 4008dbe2
mstatus: 80007880

在 scons --menuconfig 打开的旋转
LVGL enable display rotation                                                   
  │ │                        LVGL rotation degree (180)  --->                                       


备注:使用RGB 4.3寸屏旋转,显示触摸都正常。

最近编辑记录 panyuxi (2025-01-28 11:47:00)

离线

#1 2025-02-13 15:36:41

tomas
会员
注册时间: 2024-03-26
已发帖子: 40
积分: 125

Re: 7寸lVDS 1024X600 LVDS DEMO 旋转错误(不旋转时,显示触摸都正常)

旋转不在这里面设置。需要设置code。以luban lite v1.05为例:
1-lv_fbdev.h设置
#define USE_DRAW_BUF              // 旋转必须
#define DRAW_BUF_WIDTH          480
#define DRAW_BUF_HEIGHT         640

2-lv_port_disp.c
disp_drv.rotated = LV_DISP_ROT_270;   // 旋转

离线

#3 2025-02-18 08:42:44

lanlanzhilian
会员
注册时间: 2021-12-21
已发帖子: 138
积分: 43

Re: 7寸lVDS 1024X600 LVDS DEMO 旋转错误(不旋转时,显示触摸都正常)

屏幕旋转了以后触摸也要旋转才行吧

离线

#4 2025-02-19 14:16:34

loop
会员
注册时间: 2025-02-19
已发帖子: 1
积分: 1

Re: 7寸lVDS 1024X600 LVDS DEMO 旋转错误(不旋转时,显示触摸都正常)

wayland可以设置的 不需要改动代码

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn