feat(bt/example): Support I2S output of esp32s31 in A2DP sink stream example

This commit is contained in:
yangfeng
2026-06-26 09:36:01 +08:00
parent a6928be465
commit 0298e9d6ae
4 changed files with 26 additions and 4 deletions
@@ -50,7 +50,15 @@ If the internal DAC is selected, analog audio will be available on GPIO25 and GP
#### ESP32-S31
The default output is idle. If I2S is used, it can be configured through menuconfig. Currently, DAC is not supported.
The default output is I2S. If I2S is used, it can be configured through menuconfig. The default I2S connections are shown below:
| ESP pin | I2S signal |
| :-------- | :----------- |
| GPIO3 | LRCK |
| GPIO4 | DATA |
| GPIO2 | BCK |
Currently, DAC is not supported.
### Configure the project
@@ -1,2 +1,5 @@
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
CONFIG_EXAMPLE_A2DP_SINK_OUTPUT_IDLE=y
CONFIG_EXAMPLE_A2DP_SINK_OUTPUT_EXTERNAL_I2S=y
CONFIG_EXAMPLE_I2S_BCK_PIN=2
CONFIG_EXAMPLE_I2S_LRCK_PIN=3
CONFIG_EXAMPLE_I2S_DATA_PIN=4
@@ -39,7 +39,15 @@ If the internal DAC is selected, analog audio will be available on GPIO25 and GP
#### ESP32-S31
The default output is idle. If I2S is used, it can be configured through menuconfig. Currently, DAC is not supported.
The default output is I2S. If I2S is used, it can be configured through menuconfig. The default I2S connections are shown below:
| ESP pin | I2S signal |
| :-------- | :----------- |
| GPIO3 | LRCK |
| GPIO4 | DATA |
| GPIO2 | BCK |
Currently, DAC is not supported.
### Configure the project
@@ -1,2 +1,5 @@
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
CONFIG_EXAMPLE_A2DP_SINK_OUTPUT_IDLE=y
CONFIG_EXAMPLE_A2DP_SINK_OUTPUT_EXTERNAL_I2S=y
CONFIG_EXAMPLE_I2S_BCK_PIN=2
CONFIG_EXAMPLE_I2S_LRCK_PIN=3
CONFIG_EXAMPLE_I2S_DATA_PIN=4