Seeed XIAO ESP32S3 giving compilation errors when the code has previously worked #1059
-
Hi, I've been trying to minimize the size of the microcontroller for my project as much as possible. My code: // LED and Microphone Definitions // Audio Settings // BLE Hex Print Class for Debugging
private: BLEHexPrint bleHexPrint(ble); void setup() { // Initialize the analog microphone input // Initialize the ADPCM encoder // Initialize BLE with the name "ble-receive" // Start the encoder with the audio info void loop() { // Handle LED Control
} The above code could compile with ESP32-PICO-DevkitM-02 but are giving me the following compilation error when used with any ESP32S3 boards including the Seeed XIAO ESP32S3 (Sense) board. I changed LED_PIN to 3 and MIC_PIN to 6 for the XIAO. C:\Users\syeda\Downloads\PWM_generator\PWM_generator\PWM_generator.ino:12:1: error: 'AnalogAudioStream' does not name a type exit status 1 Compilation error: 'AnalogAudioStream' does not name a type I've tried looking Online but I can't find a definitive reason for it. Would you happen to know the reason? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The AnalogAudioStream is using the I2S API of the ESP32. Unfortunatly this is not supported with any of the new processors. |
Beta Was this translation helpful? Give feedback.
-
You better use auto instead of giving the class name, since this has changed! |
Beta Was this translation helpful? Give feedback.
The AnalogAudioStream is using the I2S API of the ESP32. Unfortunatly this is not supported with any of the new processors.
If you upgrade to the new 3.0.0 ESP32 release you can use the implementation which is based on the new continous API from Espressif