How Can I Upgrade my VS Code IDE to Use the v 3.0 Arduino-ESP32 APIs? - Stack Overflow

I am trying to compile some C code for the ESP32-S3-DevKitC-1 using timers in VS Code. I am trying to u

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744332321a4568946.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信