Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Visualteensy not includes ADC and ADC_util libs

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Posts
    19

    Visualteensy not includes ADC and ADC_util libs

    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 Code:
    #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);
    }

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,447
    Looks like you didn't tell vsTeensy which libraries you need. Here https://www.youtube.com/watch?v=8oTSou1I3IM a video showing how that works.

  3. #3
    Junior Member
    Join Date
    Mar 2021
    Posts
    19
    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

  4. #4
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,447
    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.

  5. #5
    Junior Member
    Join Date
    Mar 2021
    Posts
    19
    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/**":
    Click image for larger version. 

Name:	kaka.jpg 
Views:	10 
Size:	72.6 KB 
ID:	24084

    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 by jlopez2022; 03-16-2021 at 05:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •