Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ScruffR opened this issue Sep 23, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@ScruffR
Copy link

ScruffR commented Sep 23, 2023

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.

@brentru
Copy link
Member

brentru commented Sep 25, 2023

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

@brentru brentru added the enhancement New feature or request label Sep 25, 2023
@ScruffR
Copy link
Author

ScruffR commented Sep 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants