From ae2b8f77b3a05cc3315253229a345c3a839bda16 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Thu, 23 Jan 2025 21:30:42 +0200 Subject: [PATCH] ESPHome requires the 'invert_colors' option for the ili9xxx display. Fixes #287 --- Examples/ESPHome/1-Helloworld/yellowtft1.yaml | 1 + Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml | 1 + Examples/ESPHome/4-TouchDemo/yellowtft1.yaml | 1 + Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml | 1 + Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml | 1 + Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml | 1 + 6 files changed, 6 insertions(+) diff --git a/Examples/ESPHome/1-Helloworld/yellowtft1.yaml b/Examples/ESPHome/1-Helloworld/yellowtft1.yaml index 71f6cec..b7fda4e 100644 --- a/Examples/ESPHome/1-Helloworld/yellowtft1.yaml +++ b/Examples/ESPHome/1-Helloworld/yellowtft1.yaml @@ -121,6 +121,7 @@ display: cs_pin: GPIO15 dc_pin: GPIO2 rotation: 90 + invert_colors: false lambda: |- it.print(160, 140, id(arimo20), id(ha_blue), TextAlign::BOTTOM_CENTER, "Hello World!"); it.rectangle(0, 0, 320, 240, id(ha_blue)); diff --git a/Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml b/Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml index 9b798f8..fbcd209 100644 --- a/Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml +++ b/Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml @@ -140,6 +140,7 @@ display: cs_pin: GPIO15 dc_pin: GPIO2 rotation: 90 + invert_colors: false lambda: |- it.fill(id(ha_blue)); it.image(120,10, id(esphome_image)); diff --git a/Examples/ESPHome/4-TouchDemo/yellowtft1.yaml b/Examples/ESPHome/4-TouchDemo/yellowtft1.yaml index 03357fe..f690b86 100644 --- a/Examples/ESPHome/4-TouchDemo/yellowtft1.yaml +++ b/Examples/ESPHome/4-TouchDemo/yellowtft1.yaml @@ -141,6 +141,7 @@ display: cs_pin: GPIO15 dc_pin: GPIO2 rotation: 90 + invert_colors: false lambda: |- it.fill(id(Color::BLACK)); it.filled_rectangle(20, 60, 120, 120, id(ha_blue)); diff --git a/Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml b/Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml index bf059ec..c1b3183 100644 --- a/Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml +++ b/Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml @@ -153,6 +153,7 @@ display: cs_pin: GPIO15 dc_pin: GPIO2 rotation: 90 + invert_colors: false lambda: |- it.fill(id(Color::BLACK)); it.print(0, 60, id(arimo14), TextAlign::TOP_LEFT, "35"); diff --git a/Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml b/Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml index 0d3c662..b026f32 100644 --- a/Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml +++ b/Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml @@ -235,6 +235,7 @@ display: dc_pin: GPIO2 # Remove rotation if your board used the ILI9341 LCD rotation: 90 + invert_colors: false pages: - id: page1 lambda: |- diff --git a/Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml b/Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml index 3948e75..f7f140c 100644 --- a/Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml +++ b/Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml @@ -229,6 +229,7 @@ display: dimensions: width: 320 height: 240 + invert_colors: false lambda: |- it.fill(id(Color::BLACK)); it.filled_circle(80, 120, 60, id(ha_blue));