Page 1 of 1

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

Posted: Sun Mar 03, 2024 9:02 am
by timom333
IDF版本5.1.2
使用example: LCD-RGB, 添加SPI配置代码后, 屏幕可以显示例程(lv_scatter), 显示内容为竖屏.
b5aec97c8520de3923fc3affa141b4c.jpg
竖屏显示
b5aec97c8520de3923fc3affa141b4c.jpg (525.65 KiB) Viewed 3401 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 轴
显示内容没有变化, 依然是竖屏. 请问应当如何排查??

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

Posted: Fri Apr 26, 2024 12:58 pm
by liyang5945
RGB屏幕调不了方向