ML_SynthTools icon indicating copy to clipboard operation
ML_SynthTools copied to clipboard

Add support for ESP32 board library v3.0.0

Open marcel-licence opened this issue 1 year ago • 4 comments

Version 3.0.0 is released and comes with some changes. For example the usage of adc.h and i2s.h is deprecated and using it relies on legacy support. A method is required to differentiate between 3.0.0 and earlier versions to use old and new code.

marcel-licence avatar Jun 02 '24 09:06 marcel-licence

Hello @marcel-licence , if you're still looking for a method, there's #if ESP_ARDUINO_VERSION_MAJOR < 3 directive, that works for me. Example here https://github.com/copych/ESP32-I2S-Audio-Helper-Class/tree/main/test_in_out

copych avatar Oct 31 '24 16:10 copych

Hi @copych thanks a lot. That helps to differentiate between 3.#.# and earlier versions. I got some sketches working with the new ESP32 version but some come with some unexpected errors.

marcel-licence avatar Oct 31 '24 16:10 marcel-licence

Cannot be fixed until https://github.com/espressif/arduino-esp32/issues/9783 has been fixed

marcel-licence avatar Jan 17 '25 15:01 marcel-licence

Please refer to https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html for migration

marcel-licence avatar Jan 17 '25 22:01 marcel-licence