Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.8" PiTFT inverse touch points #340

Open
mikeysklar opened this issue Mar 21, 2025 · 0 comments
Open

2.8" PiTFT inverse touch points #340

mikeysklar opened this issue Mar 21, 2025 · 0 comments
Labels

Comments

@mikeysklar
Copy link
Contributor

mikeysklar commented Mar 21, 2025

Script Command

sudo -E env PATH=$PATH python3 adafruit-pitft.py --display=28c --rotation=90 --install-type=mirror

sudo -E env PATH=$PATH python3 adafruit-pitft.py --display=28r --rotation=90 --install-type=mirror

Operating System

PiOS Bookworm
Desktop
64-bit

Hardware

Raspberry Pi 4B

Behavior

inverted x,y coordinates on touchscreen for both models of display.

Description

adafruit-pitft.py brings up a visually correct X11 session, but the touch points are inverted. Bottom right corner touch results in top left corner touch. This was shown to happen on both capacitive and resistive 2.8" PiTFTs. The workaround is to change invert x,y at the config.txt level.

touch-invx,touch-invy

capacitive

dtoverlay=pitft28-capacitive,rotate=90,speed=64000000,fps=30,touch-invx,touch-invy,drm
dtoverlay=pitft28-resistive,rotate=90,speed=64000000,fps=30,touch-invx,touch-invy,drm

This had been working and I'm not sure when it stopped.

forum issue

Additional information

No response

@mikeysklar mikeysklar added the bug label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant