2.8inch Touch Display Module for Raspberry Pi Pico - STUMPED #1754
Replies: 4 comments 5 replies
-
There are two SPI interface options with the RP2040 processor. Options are standard SPI port or SPI implemented with PIO. The standard SPI interface must be used if a touch controller is connected. I assume you have put this is the setup: You must comment that out. |
Beta Was this translation helpful? Give feedback.
-
Checking the pins on that display I see it uses SPI port 1 pins, so you need to include this in your setup: |
Beta Was this translation helpful? Give feedback.
-
Hi All I am having a similar issue with the Waveshare Pico-ResTouch-LCD-3.5, I have directly connected the pico to the board with no modifications. I am using the calibrate touch example code and am getting Z reading flickering over 60000, and am getting readings above 1000 most of the time, I believe that there is a problem with the figure of 60000 as the ADC of the XPT2046 is only 12bit. I have attached a CSV and graph that shows the reading of the Z reading out of the serial port when no touch is happening on the on-screen. |
Beta Was this translation helpful? Give feedback.
-
so just to clarify from the original person, the touch screen needs ALL the ground pins? Is that what you found out? or was it certain ones? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working with one of the following.
https://www.waveshare.com/pico-restouch-lcd-2.8.htm
I've been able to get the setup file tuned to work with the TFT screen (thanks to help here). Display is working fine. I am also using 2 i2c devices and they are working fine and printing out to the TFT.
Started working with getting the XPT2046 touch screen working and I'm stumped. If I tell the setup file to #define TOUCH_CS 16, I get an error when I try to compile that I can't use the TFT_eSPI library for the touch. ERROR READS "204 | #error Touch screen not supported in parallel or SPI PIO mode, use a separate library."
So I ran the TouchTest.ino demo for the touchscreen only from library XPT2046_Touchscreen. All I get out of it is Pressure = 4095, x = 0, y = 0 on the serial monitor.
At this point, I don't know if I am fighting a hardware issue or software set-up issue.
Take it easy on me, I'm better with hardware than I am with code....Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions