Demo of A2DP audio sink role
This is the demo for user to use ESP_APIs to create a GATT Server.
- Options choose step:
- make menuconfig.
- enter menuconfig "Component config", choose "Bluetooth"
- enter menu Bluetooth, choose "Classic Bluetooth" and do not choose "Release DRAM from Classic BT controller"
- choose your options.
For the I2S codec, pick whatever chip or board works for you; this code was written using a PCM5102 chip, but other I2S boards and chips will probably work as well. The connections to make here are:
ESP pin | I2S signal |
---|---|
GPIO22 | LRCK |
GPIO25 | DATA |
GPIO26 | BCK |
After the program started, other bluetooth devices such as smart phones can discover this device named "ESP_SPEAKER", and after connection is established, audio data can be transmitted and there will occur a count of audio data packets printed.