Goal of the test
The test application shows the touch point coordinates and pressure.
Conditions for the test
VERY IMPORTANT: After every getPoint call, you have to set the 4 pins back to inputs again, otherwise the writing to the TFT display fails!!!!!
For better pressure precision, we need to know the resistance between X+ and X-. Use any multimeter to read it. For the one we're using, its 397 ohms.
Programming the Arduino with pio run -t upload only works when the display is unplugged from the Uno.
Result of the test
With tft.setRotation(0), which is portrait mode with the icons at the bottom, the touch screen coordinate numbers range as follows: