How to use specific arduino-esp32 version in PlatformIO
Add this line to platformio.ini
in order to use a specific arduino-esp32 version - such as 1.0.6:
platformio.ini
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#1.0.6
Note that for some upstream versions - at Dec 17 2021 that is arduino-esp32 v2.x, you also need to use a different platform:
platformio_upstream.ini
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
Check out similar posts by category:
Arduino, Embedded, ESP8266/ESP32, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow