schreibfaul1 / ESP32-vs1053_ext

With this library You can easily build a WebRadio with a ESP32 board and a mp3-module. See: https://www.youtube.com/watch?v=u4u9NvZvWRk
GNU General Public License v3.0
106 stars 29 forks source link

Added SPI controller selection #9

Open DarkSpir opened 4 years ago

DarkSpir commented 4 years ago

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 commented 4 years ago

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