Xinyuan-LilyGO / T-Deck

306 stars 54 forks source link

T-Deck Touchscreen input flipped #54

Closed THEGxHOxST closed 1 month ago

THEGxHOxST commented 1 month ago

I'm having the issue where the touch inputs are flipped from left to right, as in when I touch the right it detects it on the left and via versa

lewisxhe commented 1 month ago

Need to swap XY axis, please refer to the example https://github.com/Xinyuan-LilyGO/T-Deck/blob/01feb0961ec1b1d542b70d9655619090bf4cee81/examples/Touchpad/Touchpad.ino#L42

THEGxHOxST commented 1 month ago

Forgive me, I'm trying to understand how to use this code, is this to fix it within something I made or is it, like what I'm dealing with, where every image I download and flash to this T deck is flipped. If so, how do I use that code.

THEGxHOxST commented 1 month ago

I have figured out how to compile and upload the Unitest with the inputs correct, however it doesn't effect any other firmware I flash.