Skip to content

Commit

Permalink
ESPHome requires the 'invert_colors' option for the ili9xxx display.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen committed Jan 23, 2025
1 parent 8ec3f68 commit ae2b8f7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Examples/ESPHome/1-Helloworld/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions Examples/ESPHome/4-TouchDemo/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions Examples/ESPHome/5-TemperatureGraph/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down
1 change: 1 addition & 0 deletions Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ae2b8f7

Please sign in to comment.