Datasheet

after logging in) you will see the modules install. Look in particular for the STMPE610 detection and the ILI9340 screen
frequency as highlighted here
We can set up the touchscreen for rotate=90 configuration by doing the following (for more delicate calibration or for
other rotate=XX values, see the next section)
Create the directory and new calibration configuration file:
sudo mkdir /etc/X11/xorg.conf.d
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
and enter in the following lines, then save.
Section "InputClass"
Identifier "calibration"
MatchProduct "stmpe-ts"
Option "Calibration" "3800 200 200 3800"
Option "SwapAxes" "1"
EndSection
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 24 of 70