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

Thread: Teensy Libraries

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    7

    Teensy Libraries

    Hi All,

    Teensy Newbie here and fairly new to Arduino as well, but my project needs the extra memory ,ports and 3v capabilities offered by the LC /3.2 boards.

    What I have found a problem and would be grateful for an answer is when using the Teensy I have to rename some of the old Arduino libraries so the compiler picks up the Teensy versions.

    Thats all works ok, but I am also having to run another non Teensy project which means renaming the libraries again.

    Feel sure this must be a common problem, but not sure how to overcome it ? Can I use multiple versions of the IDE or a portable one, or somehow use two versions of the Libraries folder ?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,576
    The first step is to turn on verbose output while compiling in File > Preferences.

    Arduino will print a ton of info. Near the end is a list of the libraries it found, and which ones it actually used and which it ignored, with full pathnames. While this technically doesn't change anything, it does give you the important ability to actually see the library choices Arduino is having to make.

    As a general rule, Arduino tries to find libs within each platform, but anything you place in Documents/Arduino/libraries overrides all others. Without seeing the verbose output message, I can tell you the problem we see over and over again is copies of board-specific libs placed in Documents/Arduino/libraries (overriding all other copies). That override feature is great when you want to immediately solve a problem, but quickly becomes a burden if you have multiple copies. Ideally each platform's lib should go into the libraries folder for just that platform.

    But maybe this long-winded explanation is getting ahead too much, before even seeing the verbose output message.

  3. #3
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    Hi,

    Thanks, still a lot to learn

Posting Permissions

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