admin管理员组文章数量:1405567
I am trying to compile some C code for the ESP32-S3-DevKitC-1 using timers in VS Code. I am trying to use the new(?) hardware/timer code in version 3 of the Arduino ESP32 extension, but my VS Code seems to be using version 2 as evidenced by this compiler error:
src/main.cpp:41:44: error: too few arguments to function 'hw_timer_t* timerBegin(uint8_t, uint16_t, bool)'
In version 2, the function signature for timerBegin
is 'hw_timer_t* timerBegin(uint8_t, uint16_t, bool)
, but in version 3 the signature is
'hw_timer_t* timerBegin(uint32_t)'
, which is the version I need to use. arduino-esp32 migration guide
I am not sure how to upgrade my VS code IDE to use the new APIs.I have tried Configure ESP-IDF Extension
and Add Arduino ESP32 as ESP-IDF Comnponwent
IDE, and I am at ESP-IDF v 1.9.1, ESP v 5.3.1, but I can't seem to find a way to upgrade the Arduino ESP32 bit.
SOLUTION
From PlatformIO Community:
The updated PioArduino platform provides Arduino-ESP32 3.x (and accompanying ESP-IDF) integration to PlatformIO. You essentially only have to change the platform = ...
line in your platformio.ini
. The project’s README
file will tell you exactly how.
本文标签: How Can I Upgrade my VS Code IDE to Use the v 30 ArduinoESP32 APIsStack Overflow
版权声明:本文标题:How Can I Upgrade my VS Code IDE to Use the v 3.0 Arduino-ESP32 APIs? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744332320a2601023.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论