mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Update ili9xxx.rst (#3536)
Fixed the T-Embed dimensions to follow proper format. Added code block to make this work for TTGO boards.
This commit is contained in:
parent
b21f225872
commit
398e67c9eb
@ -202,10 +202,11 @@ This config rotates the display into landscape mode using the driver chip.
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
height: 170
|
||||
width: 320
|
||||
offset_height: 35
|
||||
offset_width: 0
|
||||
dimensions:
|
||||
height: 170
|
||||
width: 320
|
||||
offset_height: 35
|
||||
offset_width: 0
|
||||
transform:
|
||||
swap_xy: true
|
||||
mirror_x: false
|
||||
@ -216,6 +217,22 @@ This config rotates the display into landscape mode using the driver chip.
|
||||
dc_pin: GPIO13
|
||||
reset_pin: GPIO9
|
||||
|
||||
For Lilygo TTGO Boards if you move from the st7789v to this you need the following settings to make it work.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
#TTGO TDisplay 135x240
|
||||
dimensions:
|
||||
height: 240
|
||||
width: 135
|
||||
offset_height: 40
|
||||
offset_width: 52
|
||||
# Required or the colors are all inverted, and Black screen is White
|
||||
invert_colors: true
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user