Datasheet
Resistive Touchscreen Manual Install & Calibrate
Setting up the Touchscreen
Now that the screen is working nicely, we'll take care of the touchscreen. There's just a bit of calibration to do, but it
isn't hard at all.
Before we start, we'll make a udev rule for the touchscreen. That's because the eventX name of the device will change
a lot and its annoying to figure out what its called depending on whether you have a keyboard or other mouse
installed.
Run
sudo nano /etc/udev/rules.d/95-stmpe.rules
to create a new udev file and copy & paste the following line in:
If you've grabbed our Easy Install image, or used the installer script, this step is not required, it's already
done! This is just for advanced users who are curious on how to configure and customize the touchscreen
This procedure is identical for the 2.4", 2.8", 3.2" and 3.5" Resistive PiTFTs. Not for use with the Capacitive
PiTFT!
SUBSYSTEM=="input", ATTRS{name}=="stmpe-ts", ENV{DEVNAME}=="*event*", SYMLINK+="input/touchscreen"
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 27 of 70










