esp32-sh1106-oled
esp32-sh1106-oled copied to clipboard
Hard coded SPI instance
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!).