Skip to content

Instantly share code, notes, and snippets.

@iseanstevens
iseanstevens / ssbasic-a2dp-audiokit_wifi1_LEDs.ino
Created March 30, 2022 06:08
ESP32 mashup proof of concept - simultaneous bluetooth audio, wifi, and FastLED led control. Tested on Lyrat Mini board. Works remarkably well1
//bluetooth speaker + wifi + LEDs simultaneously
//mashed together by i@seanstevens.com
//select board in "AudioKitSettings.h" in arduino-audiokit library
// I also installed the ArduinoAudioTools lib and ESP32-ADAP lib
//This was based on ArduinoAudioTools example "basic-a2dp-audiokit.ino"
//Note, I did have to change the ESP32 partition scheme to "Minimal SPIFFS w/OTA 1.9mb app, 190kb FS" due to an out of flash error at some point, probably the audio stuff is big.
//order of defines etc may be important, I donno.
//FastLED did need to be rate limited slightly (inside every_15_ms) instead of main loop but I made not attmept to optimize anything, just make it work. And it seems to!
//Board I used "ESP32 Wrover kit all versions"
//Phil Schatzmann is amazing. thank you.