usb设置为host模式后RGB屏幕不能正常显示

  • Crocodile wrote: 2024-09-27 2:50 很抱歉,从您提供的一切信息我看不出有什么问题,这里是一份测试屏幕的程序,您可以尝试解压后发送到luckfox pico上运行一下,在运行后点击屏幕就可以进入触摸测试画面。

    luckfox_lvgl_480_test.7z
    谢谢!
    Last edited by sml008 on 2024-09-27 12:09, edited 2 times in total.
  • sml008 wrote: 2024-09-26 5:48
    Crocodile wrote: 2024-09-26 1:04 检查一下evtest GOODIX 触摸屏是作为 event0 还是 event1 ,LVGL的示例程序默认是使用event0 作为输入,同时请确定示例程序运行正常,LVGL使用framebuffer作为显示框架会在程序退出后仍保留第一个显示界面
    [root@luckfox root]# evtest
    No device specified, trying to scan all of /dev/input/event*
    Available devices:
    /dev/input/event0: Goodix Capacitive TouchScreen
    /dev/input/event1: adc-keys
    Select the device event number [0-1]: 0
    Input driver version is 1.0.1
    Input device ID: bus 0x18 vendor 0x416 product 0x38f version 0x1060
    Input device name: "Goodix Capacitive TouchScreen"
    Supported events:
    Event type 0 (EV_SYN)

    [root@luckfox root]# i2cdetect -y 3
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    [root@luckfox smltest]# hexdump /dev/input/event0
    0000000 6287 5fef 4dab 0004 0003 002f 0000 0000
    0000010 6287 5fef 4dab 0004 0003 0039 005e 0000
    0000020 6287 5fef 4dab 0004 0003 0035 0091 0000
    0000030 6287 5fef 4dab 0004 0003 0036 0056 0000
    0000040 6287 5fef 4dab 0004 0003 0030 0014 0000
    0000050 6287 5fef 4dab 0004 0003 0032 0014 0000

    [root@luckfox root]# cat /sys/devices/platform/ff3e0000.usb2-phy/otg_mode
    peripheral


    LVGL的示例程序 是在正常运行的:cpu使用率在变化,时钟也在走。
    [root@luckfox lvgl]# ./luckfox_lvgl_demo
    Mode 0: 480x480 @ 60Hz

    就是触摸按键没有反应
    请问解决了吗?