esp32-sh1106-oled icon indicating copy to clipboard operation
esp32-sh1106-oled copied to clipboard

Hard coded SPI instance

Open rljonesau opened this issue 6 years ago • 0 comments

As the ESP32 has a pin multiplexer, can you possibly modify the library so a reference to an SPIClass instance can be passed in the constructor, and that reference is used thereafter?

The ESP32 Arduino libraries (lamely) declare SPIClass SPI(VSPI); at the end of SPI.cpp. If you want to use another SPI peripheral or pin location, you are hamstrung into using VSPI on the associated pins, whether you like it or not :-( (another issue for that library really!).

rljonesau avatar Nov 14 '18 08:11 rljonesau