Datasheet

Next you can run
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test
which will let you draw-test the touch screen. Go back and re-calibrate if you feel the screen isn't precise enough!
X Calibration
You can also calibrate the X input system but you have to use a different program called xinput_calibrator
You can do this if the calibration on the screen isnt to your liking or any time you change the rotate=XX module
settings for the screen. Since the screen and touch driver are completely separated, the touchscreen doesn't auto-
rotate
Normally you'd have to compile it but we have a ready to go package for you so run:
sudo apt-get install -y xinput-calibrator
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 32 of 70