ESP32-S3驱动LCD_RGB时, esp_lcd_panel_swap_xy不生效

timom333
Posts: 1
Joined: Wed Sep 07, 2022 8:52 am

ESP32-S3驱动LCD_RGB时, esp_lcd_panel_swap_xy不生效

Postby timom333 » Sun Mar 03, 2024 9:02 am

IDF版本5.1.2
使用example: LCD-RGB, 添加SPI配置代码后, 屏幕可以显示例程(lv_scatter), 显示内容为竖屏.
b5aec97c8520de3923fc3affa141b4c.jpg
竖屏显示
b5aec97c8520de3923fc3affa141b4c.jpg (525.65 KiB) Viewed 3450 times
因为使用长条屏幕, 所以希望显示内容是横屏展示.
参考(https://docs.espressif.com/projects/esp ... b_lcd.html)
添加以下代码:

Code: Select all

    ESP_LOGI(TAG, "Initialize RGB LCD panel");
    ESP_ERROR_CHECK(esp_lcd_panel_reset(panel_handle));
    ESP_ERROR_CHECK(esp_lcd_panel_init(panel_handle));
    ESP_ERROR_CHECK(esp_lcd_panel_swap_xy(panel_handle, true));        // 通过软件实现交换 X 轴和 Y 轴
显示内容没有变化, 依然是竖屏. 请问应当如何排查??

liyang5945
Posts: 11
Joined: Fri Jun 23, 2023 6:49 pm

Re: ESP32-S3驱动LCD_RGB时, esp_lcd_panel_swap_xy不生效

Postby liyang5945 » Fri Apr 26, 2024 12:58 pm

RGB屏幕调不了方向

Who is online

Users browsing this forum: No registered users and 31 guests