Datasheet

it will force install SDL 1.2
OK now you can continue with pygame
Using the Capacitive touch screen in PyGame
The 2.8" Capacitive touch screen driver may not work by default in pygame, but this handy script shows how you can
capture the device messages in python to create a UI
https://github.com/PrzemoF/pitft_touchscreen (https://adafru.it/C2d)
here's another option
https://github.com/nift4/pigame (https://adafru.it/CYw)
For examples:
https://github.com/nift4/Raspberry-Pi-Testing (https://adafru.it/CYA)
© Adafruit Industries https://learn.adafruit.com/adafruit-2-4-pitft-hat-with-resistive-touchscreen-mini-kit Page 54 of 63