Page 1 of 1

How to identify HSPI as default SPI?

Posted: Fri Aug 04, 2023 7:28 pm
by Bwanna
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?

Re: How to identify HSPI as default SPI?

Posted: Fri Aug 04, 2023 9:43 pm
by lbernstone
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.