-
Notifications
You must be signed in to change notification settings - Fork 110
Touch Y coordinate is inverted #4
Comments
+1 |
Hi, In mine TFTs I need invert the coords. Please modify the SPFD5408_TouchScreen, line 159: before: //return TSPoint(x, y, z); // *** SPFD5408 change -- Begin after: return TSPoint(x, y, z); // *** SPFD5408 change -- Begin If this ok, I can create an #define for this Please send me if this ok now. Regards Joao |
Solved this in a strange way, but works... used this tip to invert some pins Swap the X and Y pin number in the sketch. Change this part: #define YP A1 // must be an analog pin, use "An" notation! to and set the "SPFD5408_TouchScreen.cpp"to //return TSPoint(x, y, z); // *** SPFD5408 change -- Begin Something tell me that I got a trick myself, but works!! |
Thank You, the only working way ive found on the internet!!!! |
For me this work fine. I played with the TSPoint parameters. And BAM! |
3 similar comments
For me this work fine. I played with the TSPoint parameters. And BAM! |
For me this work fine. I played with the TSPoint parameters. And BAM! |
For me this work fine. I played with the TSPoint parameters. And BAM! |
I'm using your library with a 2.4 TFT touchscreen bought on eBay. All works fine, except the touch functionality - every
TSPoint
obtained usingTouchScreen.getPoint()
has inverted the Y-coordinate. It would by nice to have an option to set coordinate system forTouchScreen
instance (for example as optional parameter of theTouchScreen
constructor).I temporary fixed it by uncommenting the line #159 in the
SPFD5408_TouchScreen.cpp
file (return TSPoint(x, y, z);
).The text was updated successfully, but these errors were encountered: