How to identify HSPI as default SPI?

Bwanna
Posts: 5
Joined: Tue Jul 30, 2019 5:05 pm

How to identify HSPI as default SPI?

Postby Bwanna » Fri Aug 04, 2023 7:28 pm

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?

lbernstone
Posts: 793
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to identify HSPI as default SPI?

Postby lbernstone » Fri Aug 04, 2023 9:43 pm

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 131 guests