Adafruit_LvGL_Glue icon indicating copy to clipboard operation
Adafruit_LvGL_Glue copied to clipboard

Feature Request: Support for non-standard SPI pins on ESP32 devices

Open ScruffR opened this issue 2 years ago • 2 comments

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 avatar Sep 23 '23 16:09 ScruffR

@ScruffR Into it! Are you interested in adding this enhancement to this library?

brentru avatar Sep 25 '23 12:09 brentru

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.

ScruffR avatar Sep 25 '23 14:09 ScruffR