a color of st7789 lcd is not correct
Posted: Thu Dec 29, 2022 7:07 am
board : esp32s3 - wroom - 1
esp-idf 5.0
hi. im testing spi lcd example : lcd_tjpgd_example_main
my issue is that the color is not display on the LCD, but other color are displayed.
ex) i set Blue(0x001F, RGB565), but lcd displayed Green.
when i set Blue(0x001F), lcd show Green.
when i set Red(0xF800), lcd show Blue.
when i set Green(0x07E0), lcd show Red.
I tried changing .rgb_endian of a panel_config and add esp_lcd_panel_invert_color() , but it didn't work. (LCD_RGB_ENDIAN_RGB <-> LCD_RGB_ENDIAN_BGR)
What should I try?
esp-idf 5.0
hi. im testing spi lcd example : lcd_tjpgd_example_main
my issue is that the color is not display on the LCD, but other color are displayed.
ex) i set Blue(0x001F, RGB565), but lcd displayed Green.
Code: Select all
uint16_t num[100];
for(int i = 0; i < 100; i++)
{
num[i] = 0x001F;
}
esp_lcd_panel_draw_bitmap(panel_handle, 0, 140, 24, 143, &num);
when i set Red(0xF800), lcd show Blue.
when i set Green(0x07E0), lcd show Red.
I tried changing .rgb_endian of a panel_config and add esp_lcd_panel_invert_color() , but it didn't work. (LCD_RGB_ENDIAN_RGB <-> LCD_RGB_ENDIAN_BGR)
What should I try?