Hi Ben,
Good news — the ST7796 display and XPT2046 touch are now working together over hardware SPI! Thank you for your suggestion about the SPI clock phase.
Here is a chronological summary of the investigation and successful test:
Initially, the display worked correctly with hardware SPI, but ...
Search found 3 matches
- Sun Sep 13, 2026 1:00 pm
- Forum: Bug Reports
- Topic: XPT2046 wrong coordinates using shared hardware SPI on ESP32
- Replies: 3
- Views: 273
- Fri Sep 11, 2026 7:56 pm
- Forum: Bug Reports
- Topic: XPT2046 wrong coordinates using shared hardware SPI on ESP32
- Replies: 3
- Views: 273
Re: XPT2046 wrong coordinates using shared hardware SPI on ESP32
In the Flowcode simulation, the touch areas assigned to the Display Manager objects work correctly. I have not verified the exact numerical X/Y values in simulation.
The problem occurs on the physical ESP32 hardware.
Please let me know if you need any further tests on the E32R40T hardware ...
The problem occurs on the physical ESP32 hardware.
Please let me know if you need any further tests on the E32R40T hardware ...
- Fri Sep 11, 2026 2:08 pm
- Forum: Bug Reports
- Topic: XPT2046 wrong coordinates using shared hardware SPI on ESP32
- Replies: 3
- Views: 273
XPT2046 wrong coordinates using shared hardware SPI on ESP32
Hello,
I am experiencing a problem with the XPT2046 touch controller when using hardware SPI in Flowcode 11.
Hardware
- LCDWiki E32R40T
- ESP32-32E
- Display controller: ST7796S
- Touch controller: XPT2046
- Display resolution: 320 x 480
The display and touch controller share the same SPI bus ...
I am experiencing a problem with the XPT2046 touch controller when using hardware SPI in Flowcode 11.
Hardware
- LCDWiki E32R40T
- ESP32-32E
- Display controller: ST7796S
- Touch controller: XPT2046
- Display resolution: 320 x 480
The display and touch controller share the same SPI bus ...