Closed yanshay closed 3 months ago
Sorry this issue somehow crept through the cracks. Is this still relevant? It seems odd that you'd get issues with two separate SPI buses.
Are they completely exclusive? e.g. each bus has separate pins all around?
It seems like the display generates noise for the touch. I had to implement filtering no the touch to take out most of the bad samples. Anyway, I'll close this.
I experience a very strange behavior with my board, maybe you can assist troubleshooting: I'm using a board
esp32-2432s028r
that useili9341
for display andxpt2064
for touch.Normally, the touch is pretty accurate, meaning if I don't make a move of the pen on the display the data comes pretty consistent between samples. Once I initialize the
Ili9341
withmipidsi
, thex
data of the touch becomes very very noisy. It still reflects changes along the x axis, but it is very jumpy (so instead of a delta of less than 12 between samples it is over 100 between samples)I thought it may have to do with me using
SPIInterfaceNoCS
and not using thecs
pin, even though the board use differentSPI
buses for each of the devices. So I tried to use thecs
withSPIInterface::new
but then I faced with an issue with rust where it complains:Even though my code for
cs
and dc is the same and I didn't see any difference betweencs
anddc
inSPIInterface
code.