Re: streaming music from an Android phone via ESP32 to AUX IN
Posted: Sun Jul 22, 2018 1:48 pm
I am glad you made it working!
After enabling the GPIO as an output in main() I would then switch it to high or low within bt_av_hdl_a2d_evt() callback.
I would try i2s_stop / i2s_startOne problem - if I suddenly disconnect my phone from the esp32, the esp32 gets stuck in a loop and plays a constant tone indefinitely. It's as if it's stuck outputting the final transmitted 16-bit word.
The code is quite simple. Check blink example.Having only used the Arduino IDE so far, I am not quite sure how to switch a GPIO pin to high or low within this esp-idf example. What would that code look like?
After enabling the GPIO as an output in main() I would then switch it to high or low within bt_av_hdl_a2d_evt() callback.