connornishijima / SensoryBridge

OSHW Advanced LED Audio Visualizer based around a hacky Discrete Fourier Transform
GNU General Public License v3.0
78 stars 10 forks source link

Breaking I2S Changes in ESP32-Arduino 2.0.10+ #27

Open connornishijima opened 6 months ago

connornishijima commented 6 months ago

If you compile Sensory Bridge firmware from source on the 2.0.10 version (or higher) of the ESP32 Arduino core, the microphone will not work, returning the same value on every frame.

Matt Crawford helpfully discovered that the I2S "right only" and "left only" modes swapped places between the 2.0.9 and 2.0.10 versions of the ESP32 Arduino core. And you can't even fucking install 2.0.9 anymore in the IDE, which doesn't help anyone.

Sensory Bridge works great from the pre-compiled .BIN in releases, but will fail unless the FMT_RIGHT_ONLY in i2s_audio.h is changed to FMT_LEFT_ONLY in the i2s_config struct. Once that change is made everything works again.

Why this changed, I don't know!