Skip to content

Commit 6f61881

Browse files
authored
Modify display rotation and add transform (#347)
Added transform to swap XY coordinates for display.
1 parent 1db1066 commit 6f61881

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Examples/ESPHome/2-ESPHomeClock/yellowtft1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ display:
140140
cs_pin: GPIO15
141141
dc_pin: GPIO2
142142
color_palette: 8BIT # Fix memory issues with ESPHome 25.x
143-
rotation: 90
143+
transform:
144+
swap_xy: true
144145
invert_colors: false
145146
lambda: |-
146147
it.fill(id(ha_blue));

0 commit comments

Comments
 (0)