Datasheet

AutoMagic Calibration Script
If you rotate the display you need to recalibrate the touchscreen to work with the new screen orientation. You can
manually run the calibration processes in the next section, or you can re-run the installer script and select a new
rotation:
Try using this default calibration script to easily calibrate your touchscreen display. Note that the calibration values
might not be exactly right for your display, but they should be close enough for most needs. If you need the most
accurate touchscreen calibration, follow the steps in the next section to manually calibrate the touchscreen.
Manual Calibration
If the "automagic" calibration technique isn't working for you, or you have some other setup where you need to
carefully calibrate you can do it 'manually'
You will want to calibrate the screen once but shouldn't have to do it more than that. We'll begin by calibrating on the
command line by running
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
follow the directions on the screen, touching each point. Using a stylus is suggested so you get a precise touch. Don't
use something metal, plastic only!
© Adafruit Industries https://learn.adafruit.com/adafruit-2-4-pitft-hat-with-resistive-touchscreen-mini-kit Page 24 of 63