I have this error with an ESP32 with touchscreen
SPIClass touchscreenSPI = SPIClass(VSPI);
XPT2046_Touchscreen touchscreen(XPT2046_CS, XPT2046_IRQ);
exit status 1
Compilation error: 'VSPI' was not declared in this scope
I have this error with an ESP32 with touchscreen
SPIClass touchscreenSPI = SPIClass(VSPI);
XPT2046_Touchscreen touchscreen(XPT2046_CS, XPT2046_IRQ);
exit status 1
Compilation error: 'VSPI' was not declared in this scope
Why don't you just use the SPI object that is already declared for you in the Arduino core? That will have instantiated the SPIClass object on the proper interface for the particular ESP32 board you're using (and didn't both to tell us which one).
True. See this:
and also: