I would try i2s_stop / i2s_startmegabite wrote:One 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.megabite wrote: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.