Porting PIO Arduino,IDF project to VSCODE IDF

HitecSmartHome
Posts: 11
Joined: Mon Mar 18, 2024 9:22 am

Porting PIO Arduino,IDF project to VSCODE IDF

Postby HitecSmartHome » Fri Apr 26, 2024 11:14 am

Hello guys!

I have a massive project written with PlatformIO using arduino and idf.
Since I have read that PIO will not move to the latest sdk I started to port my project to VSCODE with IDF extension.
I have successfully setup a basic project with Arduino as a component of IDF and i could compile an empty sketch.
I have setup my sdkconfig just as it was with my PIO project.
I have copied all of my code from the prev project to this new project. Now it can not compile because it can't find my Arduino libraries which was in a folder called "lib".

I have the following Arduino specific libraries in the lib folder

  • ArduinoJson
    Dusk2Dawn
    ESPAsyncDNSServer
    JPEGDecoder
    Rtc
    TFT_eSPI

The compiler does not like my include which is #include <ArduinoJson.h>

Where should I set the include paths in Vscode IDF? ( I also have my own code inside `main` which was previously `src` )

Compilation error:

Code: Select all

fatal error: ArduinoJson.h: No such file or directory
    4 | #include <ArduinoJson.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
[1149/1279] Building CXX object esp-id.../cores/esp32/chip-debug-report.cpp.objninja: build stopped: subcommand failed.

Who is online

Users browsing this forum: No registered users and 138 guests