-
Notifications
You must be signed in to change notification settings - Fork 236
Including libraries on Arduino CLI #1619
Comments
My suggestion: Search with file explorer in the directory where you have installed VsCode to a subdirectory similar this one: \data\extensions\vsciot-vscode.vscode-arduino-0.6.0-win32-x64\assets\platform\win32-x64\arduino-cli |
Your question is a little vague, but it sounds like something I just solved for myself. For me, neither the Arduino extension for vscode nor the included arduino-cli were pulling in any of the built-in Arduino libraries (SD, servo, TFT, etc). I would get the build error To fix this, I used the arduino-cli to create a configuration file ( My directories section of arduino-cli.yaml roughly looks like the following:
More details on the arduino-cli configuration https://arduino.github.io/arduino-cli/0.35/configuration/. |
I am currently using Arduino CLI version
0.31
. I have used Arduin IDE in the past. So, I got all my installed libraries into cli usingarduino-cli lib install
. I use Arduino CLI on visual studio code using Arduino extension by Microsoft.I Even though I have my libraries installed I was not able to use them on my code like I used to on IDE. For example
#include <Servo.h>
. Help me if I am missing somethingThe text was updated successfully, but these errors were encountered: