VS Code #include errors

Hi,
So, I'm trying to switch to VS Code but, my VS Code gives me includes errors when i upload my project. In fact, i know it finds my librairies because when i hold my mouse above a function which is define in a librairie, it shows me details of this function:


But, the problem is that, when i upload my project, it says it can't find it :

Please help me (PS: I apologize if I made mistakes in English, I am French)

You have to add the libraries that you need so that they show up in the platformio.ini file.

Go to platformio home (click the alien icon on the left margin of your project), on the left click libraries and use the search libraries input.
If it finds the library it will prompt you to add it to your project and then it will show up
in your platformio.ini file.

1 Like

And if you are using VS Code with the Arduino extension from Microsoft, try the Platformio extension instead: https://youtube.com/watch?v=ZDz7g_2fPOQ&t=315s

thank you, I was indeed using the arduino extension from microsoft but now it works with platformio. Thx guys

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.