PaulStoffregen / XPT2046_Touchscreen

Touchscreen Arduino Library for XPT2046 Touch Controller Chip
249 stars 89 forks source link

The begin() function can also specify communication on a different SPI port. ts.begin(SPI1); // use SPI1 rather than SPI is not available #54

Open ats3788 opened 4 months ago

ats3788 commented 4 months ago

Hello I fiddle with my Cheap yellow Display but I can't assign SPIClass(VSPI); The begin() function can also specify communication on a different SPI port. ts.begin(SPI1); // use SPI1 rather than SPI

This is not available so how can I do this

SPIClass mySpi = SPIClass(VSPI);
XPT2046_Touchscreen ts(XPT2046_CS, XPT2046_IRQ);

TFT_eSPI tft = TFT_eSPI();
ats3788 commented 4 months ago

I was a bit to fast I can compile it with the Arduino IDE but not with PlatformIO any hint. I will open a case in PlatformIO