Adafruit_LvGL_Glue
Adafruit_LvGL_Glue copied to clipboard
Feature Request: Support for non-standard SPI pins on ESP32 devices
Since the ESP32 series offer very high pin flexibility to shuffle pins when needed it would be rather nice if we could use HW SPI interfaces VSPI and HSPI with non-standard pins in Adafruit_SPITFT.
With some code like this
SPIClass spi(HSPI);
Adafruit_HX8357 tft(&spi, CS_PIN, CD_PIN, RST_PIN);
void setup() {
spi.begin(CLK_PIN, MISO_PIN, MOSI_PIN, CS_PIN);
tft.begin();
...
}
Maybe be adding an overload for ::begin() that wouldn't attempt to call SPIClass::begin() internally.
@ScruffR Into it! Are you interested in adding this enhancement to this library?
I would be and I have tried some modifications, but haven't found a solution nor a good explanation why what I tried didn't work as expected. Once I do find a solution, I'd file a PR.