schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
1.07k stars 282 forks source link

adding a vu-meter with LEDs #169

Closed hmax42 closed 3 years ago

hmax42 commented 3 years ago

Hello First, thank you for this great project.

I am already using it successfully with the Make Python Audio 2.0 https://www.tindie.com/products/makerfabs/esp32-audio-player/

Now i want to use it with Pimoroni's Speaker Phat and Waveshare's ESP32 One https://pinout.xyz/pinout/speaker_phat https://www.waveshare.com/wiki/ESP32_One

Audio works :) But i'd like to put the current volume of the sound into the LEDs. The LEDs are controlled with a SN3218 so that works. But how can i find out, which LEDs to light up according to the current playing sound? How can i access the wave data?

hmax42 commented 3 years ago

found a way to calculate the power levels required, will do a pull request soon

hmax42 commented 3 years ago

https://github.com/hmax42/ESP32-audioI2S/commit/6cce84217e5bc8f2f8925936affc84576932a29b have to test it still, my local dev env uses my branch "powerlevel", which uses a ESP32-audioi2s-version from last summer and an esp32-1.0.4

hmax42 commented 3 years ago

Tested with ESP32 1.0.6 Referencing PullRequest https://github.com/schreibfaul1/ESP32-audioI2S/pull/170

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.