sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.09k stars 187 forks source link

Config for Sparkfun Pro Mini esp32? #290

Open sensorium opened 2 days ago

sensorium commented 2 days ago

I can't get audio from the Sparkfun Pro Mini esp32. It worked 6 months ago (before Mozzi 2.0?). I don't remember any special config back then, and there's nothing in the sketches. But I expect the issue is with my brain rather than the software....

Should this work, at the top of the sketch?

include "MozziConfigValues.h"

define MOZZI_AUDIO_MODE MOZZI_OUTPUT_INTERNAL_DAC

define MOZZI_AUDIO_CHANNELS MOZZI_MONO

tomcombriat commented 1 day ago

Hi @sensorium

I'm not completely sure it is your brain, there was a few reports of problems with ESP32 lately (#278 #261 ). Unfortunately I do not have the hardware yet to reproduce.

One thing is sure (even though the main webpage is wrong) is that the default output mode for ESP32 should be the internal dac (https://github.com/sensorium/Mozzi/blob/091c31998b11d32c68483db4b9c9b96fef2b5550/internal/config_checks_esp32.h#L86) so normally no config should be needed… You do not get any sound on any pin? No warning or errors on compilation? Have you tried with Mozzi1?