ise7
Posts: 11
Joined: Mon Jul 16, 2018 8:46 am

3.2 touch inverted axis; need help with proper transformation

Wed Jul 18, 2018 10:54 pm

Hey i bought a 3.2 touch screen on ebay that looks to be based off the waveshare one.

I installed the screen using instructions located on https://www.waveshare.com/wiki/3.2inch_RPi_LCD_(B) using the tar.gz install file

The screen works with touch registering but my touches but my axis are inverted. Moving my finger Left goes up; moving my finger R moves down. Moving my finger Down goes L; moving my finger Up goes R

I googled around and this seems to be a common problem. Using the command below my x axis works as intended by my y axis is still inverted.

Code: Select all

xinput set-prop 'ADS7846 Touchscreen' 'Coordinate Transformation Matrix' 0 1 0 1 0 0 0 0 1


I played around with other values in the http://www.calcul.com/show/calculator/m ... iplication and 0 -1 0 1 0 0 0 0 1 seems to give me the correct transformation but my cursor is then just stuck to the left side of the screen.

Can anyone help with the proper transformation?

User avatar
lmarmisa
Posts: 1260
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: 3.2 touch inverted axis; need help with proper transformation

Thu Jul 19, 2018 9:11 am

Take a look at this link (option LCD_ROTATE file /boot/config.txt):

https://www.raspberrypi.org/documentati ... t/video.md

DirkS
Posts: 10214
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: 3.2 touch inverted axis; need help with proper transformation

Thu Jul 19, 2018 10:53 am

lmarmisa wrote:
Thu Jul 19, 2018 9:11 am
Take a look at this link (option LCD_ROTATE file /boot/config.txt):

https://www.raspberrypi.org/documentati ... t/video.md
That doesn't help if just touch orientation is wrong.

Return to “Troubleshooting”