Search found 3 matches

by kenneth
Thu Jan 19, 2023 9:06 pm
Forum: ESP-IDF
Topic: How to use lcd panel drivers from esp-idf/components/esp_lcd?
Replies: 2
Views: 2491

Re: How to use lcd panel drivers from esp-idf/components/esp_lcd?

I'm working with the tjpgd example with esp-idf 5.0 and I can't see that it uses esp-lcd as a component in any cmakelist-file, it includes the headers directly. I'm looking at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#common-component-requirements and e...
by kenneth
Thu Jan 19, 2023 6:25 am
Forum: ESP-IDF
Topic: a color of st7789 lcd is not correct
Replies: 1
Views: 1858

Re: a color of st7789 lcd is not correct

You could try changing the endianess of the color values. Even though esp-idf calls the pixel format "endian" when changing between RGB and BGR, it's not the same as swapping the byte order, at least not on 565 format. A RGB uint16 with RRRR RGGG GGGB BBBB becomes GGGB BBBB RRRR RGGG after swapping ...
by kenneth
Thu Jan 19, 2023 3:38 am
Forum: ESP-IDF
Topic: How to use lcd panel drivers from esp-idf/components/esp_lcd?
Replies: 2
Views: 2491

How to use lcd panel drivers from esp-idf/components/esp_lcd?

I have a dev board with a st7789 panel and I want to use the panel driver located in esp-idf/components/esp_lcd/src/esp_lcd_panel_st7789.c, but I can't find any headers to include. Am I supposed to include the whole .c-file in my own .c-file? It comes with the function definitions on top after all.