#[Solved] TFT Screen Calibration

1 messages · Page 1 of 1 (latest)

vernal pewter
#

I cannot find documentation on how to calibrate the touchscreen. I have some lvgl code to draw an interface on the screen, but i have to tap 20-30 px below the controls to trigger touch events.

jade dock
#

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?

vernal pewter
vernal pewter
#
GitHub

CircuitPython library for 4-wire resistive touch screens - adafruit/Adafruit_CircuitPython_Touchscreen

GitHub

Programs and scripts to display "inline" in Adafruit Learning System guides - adafruit/Adafruit_Learning_System_Guides

#

Thanks for your time and input.

#

[Solved] TFT Screen Calibration

jade dock
#

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