Skip to content

ESP32 S3 Development board not support ESP32 S3 Development board #745

Description

@herofence

Problem Description

I want to use this library in Arduino IDE to process audio signals, convert them into I2C, and then display them through LED after Fourier transform. The compilation prompt does not support the development board of ESP S3. Here is the error message. Is there any way to solve it?
\Documents\Arduino\libraries\ESP32-A2DP\src/BluetoothA2DPCommon.h:33:4: error: #error "Please read the ESP32-A2DP Wiki about the supported Platforms!"
33 | # error "Please read the ESP32-A2DP Wiki about the supported Platforms!"
| ^~~~~
exit status 1

Compilation error: exit status 1

Device Description

ESP-S3-N16R8

Sketch

#include <BluetoothA2DPSink.h>
#include <driver/i2s.h>

// I2S引脚配置 - 根据您的硬件调整
#define I2S_BCK 5
#define I2S_WS 6
#define I2S_DOUT 7

// 创建A2DP接收器实例
BluetoothA2DPSink a2dp_sink;

void setup() {
  Serial.begin(115200);
  
  // 初始化I2S配置
  static const i2s_config_t i2s_config = {
    .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_TX),
    .sample_rate = 44100,
    .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
    .channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
    .communication_format = I2S_COMM_FORMAT_STAND_I2S,
    .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
    .dma_buf_count = 8,
    .dma_buf_len = 64,
    .use_apll = false,
    .tx_desc_auto_clear = true,
    .fixed_mclk = 0
  };

  static const i2s_pin_config_t pin_config = {
    .bck_io_num = I2S_BCK,
    .ws_io_num = I2S_WS,
    .data_out_num = I2S_DOUT,
    .data_in_num = I2S_PIN_NO_CHANGE
  };

  // 启动A2DP接收器
  a2dp_sink.set_pin_config(pin_config);
  a2dp_sink.set_i2s_config(i2s_config);
  a2dp_sink.start("ESP32-S3-BT-Speaker");
  
  Serial.println("ESP32-S3 Bluetooth A2DP Sink Started");
  Serial.println("Device Name: ESP32-S3-BT-Speaker");
  Serial.println("Ready for Bluetooth connection");
}

void loop() {
  delay(1000);
  // 可以添加状态显示或其他功能
}

Other Steps to Reproduce

ESP32S3 Dev Module

Provide your Version of the EP32 Arduino Core (or the IDF Version)

ESP32-S3-DevKitC-N16R8

I have checked existing issues, discussions and online documentation (incl. the Wiki)

  • I confirm I have checked existing issues, discussions and online documentation (incl. the Wiki)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions