#[Solved] TFT Screen Calibration
1 messages · Page 1 of 1 (latest)
If memory serves (I had similar with the lilgo/ttgo t-display s3 touch version), there was an example sketch for calculating the touchscreen calibration values, and then you use those resultant values in your real sketch to initialise the touchscreen.
Which device and screen have you got?
I have the pyportal
https://www.adafruit.com/product/4116
ugh, sadly I don't think it's supported.
from the PyPortal arduino self test, the code does its own calibration
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/d2e9ff09dea1e55f8d6f575a0bd6e34bef2bc6b4/PyPortal_ArduinoSelfTest/PyPortal_ArduinoSelfTest.ino#L180
That code is extremely similar to the python calibration code
https://github.com/adafruit/Adafruit_CircuitPython_Touchscreen/blob/baaef855b2f4cb4e7f7d961c65b09c0000413fd8/adafruit_touchscreen.py#L159
Thanks for your time and input.
[Solved] TFT Screen Calibration
The one thing I did spot was the value of 300 passed into the touchscreen driver is a resistance value that is between x1 and x2 pins, and you can measure the true value and update that bit for slight improvement