legacy adc driver is deprecated
tv4you2016 opened this issue · comments
Problem Description
In file included from C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s.h:23, from components/ESP32-A2DP/src/BluetoothA2DPOutput.h:9, from components/ESP32-A2DP/src/BluetoothA2DPSink.h:18, from components/ESP32-A2DP/src/BluetoothA2DPSinkQueued.h:3, from components/ESP32-A2DP/src/BluetoothA2DPSinkQueued.cpp:2: C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp] 19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" | ^~~~~~~ Compiling .pio\build\esp32dev\bootloader_support\src\bootloader_common.c.o Archiving .pio\build\esp32dev\esp-idf\app_trace\libapp_trace.a Compiling .pio\build\esp32dev\bootloader_support\src\bootloader_common_loader.c.o In file included from C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s.h:23, from components/ESP32-A2DP/src/BluetoothA2DPOutput.h:9, from components/ESP32-A2DP/src/BluetoothA2DPOutput.cpp:1: C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp] 19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" | ^~~~~~~ In file included from C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/i2s.h:23, from components/ESP32-A2DP/src/BluetoothA2DPOutput.h:9, from components/ESP32-A2DP/src/BluetoothA2DPSink.h:18, from components/ESP32-A2DP/src/BluetoothA2DPSink.cpp:16: C:/Users/Asus/.platformio/packages/framework-espidf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp] 19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" | ^~~~~~~ Compiling .pio\build\esp32dev\bootloader_support\src\bootloader_clock_init.c.o Archiving .pio\build\esp32dev\esp-idf\app_update\libapp_update.a In file included from src/main.cpp:2: components/ESP32-A2DP/src/BluetoothA2DPSink.h:23:4: warning: #warning "AudioTools library is not included first or installed" [-Wcpp] 23 | # warning "AudioTools library is not included first or installed" | ^~~~~~~
Device Description
Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.9.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf @ 3.50301.0 (5.3.1)
- tool-cmake @ 3.16.4
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-ninja @ 1.9.0
- tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
- tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
- toolchain-esp32ulp @ 1.23800.240113 (2.38.0)
- toolchain-xtensa-esp-elf @ 13.2.0+20240530
Sketch
----------------platformio.ini--------------------
[env:esp32dev]
platform = espressif32
board = esp32dev
framework =
espidf
monitor_speed = 115200 ; 921600, 512000, 460800, 256000, 115200
----------------main.cpp--------------------------
#include "BluetoothA2DPSink.h" // https://github.com/pschatzmann/ESP32-A2DP/wiki/Espressif-IDF-as-a-Component
BluetoothA2DPSink a2dp_sink;
void setup(){
a2dp_sink.start("MyMusic");
}
void loop(){
a2dp_sink.delay_ms( 500 ); // or use vTaskDelay()
}
extern "C" void app_main(void){
setup();
while(true){
loop();
}
}
Other Steps to Reproduce
No response
Provide your Version of the EP32 Arduino Core (or the IDF Version)
framework-espidf @ 3.50301.0 (5.3.1)
I have checked existing issues, discussions and online documentation
- I confirm I have checked existing issues, discussions and online documentation
Please READ the README
- I2S API / Dependencies
- A2DP Sink (Music Receiver)
and the WIKI!
- Legacy I2S API
- Working with PlatformIO