I have been trying to get this to work for some time and I am struggling to find documentation that works.
I have a TTGO T-Display but I keep getting an error on the model line.
Failed config
display.st7789v: [source /config/esphome/esphome-web-f19d1c.yaml:213]
platform: st7789v
[model] is an invalid option for [display.st7789v]. Please check the indentation.
model: TTGO TDisplay 135x240
in my YAML file I have this
Any help anyone could give me would be appreciated.
veli
July 13, 2023, 5:42pm
2
display:
- platform: st7789v
model: TTGO_TDISPLAY_135X240
backlight_pin: GPIO4
spi_id: spi_display
cs_pin: GPIO5
dc_pin: GPIO16
reset_pin: GPIO23
rotation: 0°
nickrout
(Nick Rout)
July 13, 2023, 8:45pm
3
Not what the docs say.
@vattaylor what version of esphome are you running?
veli
July 13, 2023, 8:49pm
4
Must be wrong, or needs ‘quotes’ around model because it has spaces , this works for me, validator spits this raw config out:
display:
- platform: st7789v
model: TTGO_TDISPLAY_135X240
id: lcd
spi_id: spi_display
cs_pin:
number: 5
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
drive_strength: 20.0
inverted: false
dc_pin:
number: 16
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
drive_strength: 20.0
inverted: false
reset_pin:
number: 23
mode:
output: true
input: false
open_drain: false
pullup: false
pulldown: false
drive_strength: 20.0
inverted: false
rotation: 0
update_interval: 1s
nickrout
(Nick Rout)
July 13, 2023, 9:01pm
5
Interesting, yes the doc just looks wrong, with spaces in the model:
Thanks for all your help. I have found out that if I delete the model: line it works