Image quality and Color settings for WT32-SC01 Plus


I’m running the example from esp_lvgl_port component but the text and button are with a terrible quality. After a lengthy experimentation we found that checking the box next to “Swap the 2 bytes of RGB565 color” in menuconfig LVGL configuration → Color settings improved the quality but the colors are wrong now.

What might be causing the quality issue and where should I look for some improvements?

What MCU/Processor/Board and compiler are you using?

WT32-SC01 Plus, IDF 5.1.2

What LVGL version are you using?


What do you want to achieve?

Crisp text with correct colors.

What have you tried so far?

Tried different checkboxes in menuconfig.

Screenshot and/or video

Found the solution.
In case someone is struggling with the same issue, here is what I did.

  1. First thing that I had to do was to invert the panel color.
    esp_lcd_panel_invert_color(lcd_panel, true);

Adding that to panel initialisation part solved it.

  1. Second thing was to change the color space. Seems like I need to set BGR instead of RGB.

  2. Had to tick the checkbox in menuconfig under LVGL configuration → Color setting → Swap 2 bytes of RGB565

1 Like