I have an ESP32-WROOM trying to use the XPT2046_TOUCHSCREEN library by Paul S.
His library uses the default SPI pinout which I believe is automatically set to VSPI. I have a setup where the XPT2046 is wired to the HSPI pins on the ESP32.
How can I select HSPI to be the default SPI seen by Paul's Library?
How to identify HSPI as default SPI?
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: How to identify HSPI as default SPI?
The touchscreen library will accept an SPIClass object in begin, so set up hspi as in https://github.com/espressif/arduino-es ... _Buses.ino, and pass that object as a parameter in the begin for the touchscreen.
Who is online
Users browsing this forum: No registered users and 33 guests