Closed gvdhoven closed 2 weeks ago
p.s. i also tried the alternative model ILI9488_A
with no luck.
I don't see invert_colors
in your config. What did you try? What do the logs say about the display config?
I don't see
invert_colors
in your config. What did you try? What do the logs say about the display config? The logs say the config was valid (otherwise it would not compile off course)
I found out that "invert_colors" should be set to FALSE (!) and then it works as expected.
However, since this is a boolean value, my assumption was that it (already) defaults to false, so I (previously) only tried "invert_colors: true" which did not work as expected. So basically you have to explicitly mention that it defaults to false, otherwise it inverts colors by default (and who would want that?)
I did some digging in the source code and found out that:
So the fix would be to change:
cv.Optional(CONF_INVERT_COLORS): cv.boolean,
To:
cv.Optional(CONF_INVERT_COLORS, default=False): cv.boolean,
In the file: esphome/components/ili9xxx/display.py
I will raise a pull request.
The problem
I have connected an ILI9488 display which is white when turned on (i was expecting it to be black just like an OLED screen). The image i am displaying is an PNG file with an alpha channel and is showing up with inverted colors. I have tried the
invert_colors
option but that does not seem to do anything.This is the image i am trying to display:![logo](https://github.com/user-attachments/assets/e5430afa-c42a-4900-aa62-677d81bcc554)
This is how it shows up:![IMG20240812201906](https://github.com/user-attachments/assets/da118b47-786d-4b7e-a178-fdeaddf39047)
I have double checked all connections and the display is brand new - bought here. Interesting point to note is that that specific website mentions there is a bug with ESP32 for this display, and that the following line should be commented out;
if defined(ESP8266) || defined (ARDUINO_ARCH_ARC32) || defined(ESP32)
in the fileILI9488.cpp
but i don't know if that information helps.Which version of ESPHome has the issue?
2024.7.3
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
n/a
What platform are you using?
ESP32
Board
S2-mini
Component causing the issue
display
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response