Visualteensy not includes ADC and ADC_util libs

Status
Not open for further replies.
Hello forum, I am newby using Arduino and Teensy boards, I installed Arduino 1.8.13
(at I installed all at d:\arduino)
Also Teensyduino: 1.53 installer, included all libraries (ADC also)

Then using VisualTeensy v0.9.9.2 to create code, but ADC libs not appears, then it opened VScode

But in my first program, VScode not find ADC.h and ADC_util.h

I do not found any ADC in d:\arduino\libraries

HTML:
#include "Arduino.h"
#include "ADC.h"
#include "ADC_util.h"

ADC *adc=new ADC();

void setup()
{
  pinMode(LED_BUILTIN,OUTPUT);
}

void loop()
{
  digitalWriteFast(LED_BUILTIN,!digitalReadFast(LED_BUILTIN));
  delay(500);
}
 
I see, I found ADC, but ADC_util is not needed, I removed it and worked fine. I think is not needed the PlatformIO to be installed in the VScode
 
Yes, ADC_util is part of ADC. PlatformIO is a completely different tool also working with vsCode as editor. You do not need it for VisualTeensy.
 
Thank you Luni,
I found the problem. I installed in other computer and appears again. I have seen in the c_cpp_properties.json file it is not found the Included path "lib/ADC/**":
kaka.jpg

I see also that the lib\ADC is not in the tree, but it appears at the other computer

At least, I found it was generated here:
C:\Users\user_name\source\newProject

So the problem is solved by opening Visualteensy as administrator :)
 
Last edited:
Status
Not open for further replies.
Back
Top