PlatformIO 与 Arduino 使用什么 ESP-IDF 版本
在 2021 年 12 月 17 日,PlatformIO 使用此默认 platformio.ini 配置(使用 platformio-espressif32 v3.4.0):
platformio.ini
[env:ESP32]
platform = espressif32
board = esp32dev
framework = arduino使用 ESP-IDF 版本 3.3.5
你可以按照我们关于如何在 PlatformIO 中打印所有预处理器标志的文章中所述,通过打印所有预处理器标志来自己找出,然后使用以下命令查找 ESP_IDF_VERSION_... 定义:
grep_esp_idf_version.sh
grep ESP_IDF_VERSION .pio/build/ESP32/src/main.cpp.o当前结果是
esp_idf_version_defines.cpp
#define ESP_IDF_VERSION_MINOR 3
#define ESP_IDF_VERSION_MAJOR 3
#define ESP_IDF_VERSION_PATCH 5Check out similar posts by category:
Arduino, 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