Hi everyone
I have the following code running on a PyPortal Titano with CircuitePython 7
touchscreen = adafruit_touchscreen.Touchscreen(board.TOUCH_XL,
board.TOUCH_XR,
board.TOUCH_YD,
board.TOUCH_YU,
calibration=((5200, 80000), (5800, 57000)),
size=(display.width, display.height),
z_threshold = 60000)
I encounter the following problems:
1. The board identifies imaginary touches of pressure ~58000 unless I set the z_treshold as above
2. calling touchscreen.touch_point I always get 0 as the x and a random number between 90-100 as y regardless of where I touch
Any help is most appreciated
Thanks
Zvika
Titano touchscreen problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Titano touchscreen problem
Is the Titano in a case or anything else that might be exerting pressure onto the touch screen?
- zberkovich
- Posts: 3
- Joined: Sat Aug 06, 2022 1:03 pm
Re: Titano touchscreen problem
It's not in a case.
Thanks
Thanks
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Titano touchscreen problem
Check the ribbon cable connection on the back of the display. Make sure the ribbon cable is well seated and the two black locking tabs are fully pushed in. This is just a visual check. Can see here for reference:
https://learn.adafruit.com/adafruit-pyp ... rdware-faq
https://learn.adafruit.com/adafruit-pyp ... rdware-faq
- zberkovich
- Posts: 3
- Joined: Sat Aug 06, 2022 1:03 pm
Re: Titano touchscreen problem
I pulled the black locks out and pushed them back again
looks like this solved the problem. I guess there was some dust inside the connector
Thanks!
looks like this solved the problem. I guess there was some dust inside the connector
Thanks!
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Titano touchscreen problem
Wow! Cool. So glad that's all it was. Glad it's all working now. Good job fixing it up and thanks for letting us know. Have fun!
Please be positive and constructive with your questions and comments.