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 run a small Python script which will automatically
set a default touchscreen calibration based on the screen orientation.
This helper is automatically installed for you but if you'd like you can check it out here on github
Run it at the command line with
sudo adafruit-pitft-touch-cal
it will try to figure out what display you have installed and the rotation it's set up for
By default the script will attempt to read the screen orientation by examining the PiTFT module configuration with
modprobe. If the script can read the orientation it will print out the current orientation, the current touchscreen
calibration values, and the new touchscreen calibration values baesd on the current orientation. Before updating the
calibration the script will ask you to confirm that you'd like to make the change. Press y and enter to confirm.
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 30 of 70










