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:
rossking 2024-01-13 06:54:31 -08:00 committed by GitHub
parent b21f225872
commit 398e67c9eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 4 deletions

View File

@ -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
--------