ESP32-Cheap-Yellow-Display
ESP32-Cheap-Yellow-Display copied to clipboard
XTP2046 ESP Home - Touch rotated by 90 degree
I tried the example "4-TouchDemo" for the ESP Home integration. The touchscreen was off by 90° So I had to change the transform value to true to make it work like expected:
touchscreen:
transform:
swap_xy: true
see: https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/blob/main/Examples/ESPHome/4-TouchDemo/yellowtft1.yaml#L163
I am not sure if this was just the case for my CYD, but maybe it should be mentioned in the comments that this can be the case for some CYD's if someone else is struggling to find out why the inputs are off.
The CYD I bought: https://www.amazon.de/dp/B0CSYPG716 ESP Home Version: 2024.2.2
Thx for the library! Keep up the good work!