I am currently trying to control a servo from an Arduino for a laser turret through vscode. the problem is that vscode does not pick up on my library folder called <servo.h>. I have a folder named "workspace" with the servo library, the .ino file, and the workspace file for vscode.
Instead of platformIO, I'm using the Arduino extension for vscode. I'm using an Arduino UNO. here is the code so far:
#include <Servo.h>
Servo servo1;
Servo servo2;
int potval
int potpin = 0
void setup()
and here is what my c_cpp_properties.json file looks like:
{
"configurations": [{
"name": "Win32",
"includePath": [
"${workspaceFolder}
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}],
"version": 4
}
And I'm running Windows 10