Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Added SPI controller selection #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DarkSpir
Copy link

  • Added SPIClass pointer
  • Overloaded Constructor to select SPI controller by passing a SPIClass object

If no object is passed to the constructor the class behaves as before by using VSPI on ESP32. By passing a SPIClass object that has been initialized for HSPI to the constructor you can use that controller instead.

@DarkSpir
Copy link
Author

One thing I noticed during my tests: HSPI uses per default GPIO12 for MISO. If that pin is driven high during boot, the ESP32 drops the flash voltage to 1.8V which in my case prevents me from flashing new software via usb and the Arduino IDE. Temporarely removing the connection from my breadboard fixes the issue. Setting a different GPIO pin for MISO should work, too.

See also: https://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant