ESP32-Cheap-Yellow-Display icon indicating copy to clipboard operation
ESP32-Cheap-Yellow-Display copied to clipboard

XTP2046 ESP Home - Touch rotated by 90 degree

Open laisch-at opened this issue 11 months ago • 0 comments

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!

laisch-at avatar Mar 06 '24 20:03 laisch-at