Color used in code / Expected / Color shown on display
COLOR_BLACK / Black / White
COLOR_WHITE / White / Black
Color(1,0,0) / Red / Purple
Color(0,1,0) / Green / orange
Color(0,0,1) / Blue / Light Blue
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
All colors are inverted
Color used in code / Expected / Color shown on display COLOR_BLACK / Black / White COLOR_WHITE / White / Black Color(1,0,0) / Red / Purple Color(0,1,0) / Green / orange Color(0,0,1) / Blue / Light Blue
Which version of ESPHome has the issue?
2022.9.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
Home Assistant 2022.9.0
What platform are you using?
ESP32
Board
M5stack Core (2018.3)
Component causing the issue
https://esphome.io/components/display/ili9341.html
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
the ESPHome driver for the ili9342 display is hardcoded to invert the display on the M5 Stack
esphome\components\ili9341\ili9341_display.cpp
// M5Stack display void ILI9341M5Stack::initialize() { this->initlcd(INITCMDM5STACK); this->width = 320; this->height_ = 240; this->invertdisplay(true); }
// 24_TFT display void ILI9341TFT24::initialize() { this->initlcd(INITCMDTFT); this->width = 240; this->height_ = 320; }
// 24_TFT rotated display void ILI9341TFT24R::initialize() { this->initlcd(INITCMDTFT); this->width = 320; this->height_ = 240; }
This problem has been reported before, but there is no fix yet. https://github.com/esphome/issues/issues/1893