mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-03-01 03:51:36 +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:
|
display:
|
||||||
- platform: ili9xxx
|
- platform: ili9xxx
|
||||||
model: st7789v
|
model: st7789v
|
||||||
height: 170
|
dimensions:
|
||||||
width: 320
|
height: 170
|
||||||
offset_height: 35
|
width: 320
|
||||||
offset_width: 0
|
offset_height: 35
|
||||||
|
offset_width: 0
|
||||||
transform:
|
transform:
|
||||||
swap_xy: true
|
swap_xy: true
|
||||||
mirror_x: false
|
mirror_x: false
|
||||||
@ -216,6 +217,22 @@ This config rotates the display into landscape mode using the driver chip.
|
|||||||
dc_pin: GPIO13
|
dc_pin: GPIO13
|
||||||
reset_pin: GPIO9
|
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
|
See Also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user