New to this stuff.
OK I am downloading different programs and they have the library that they used, I am now finding that there are different library with same name. ( I am looking at different programs to run LCD I2C ).
I think I know library are to go in C:program(x86)/ arduino/............... My question is there someway to make a folder that I can place the program and all the library so it kind of stand alone in one place. If there is a place I should be reading about this could you point me to it. I am using arduino IDE 1.8.5, UNO board. Window 7.
3rd party libraries go in the arduino directory in my documents.
You can place the library files in the same directory as the sketch; you will have to include using
#include "someLibrary.h"
Or in the src folder (you have to create it).
YourSketchDirectory -> src -> someLibrary -> someLibrary.h and/or cpp
In that case
#include "src/domeLibrary/someLibrary.h"
You might have to fix includes inside the library files themselves if you get errors; the error messages should explson ckearly what needs fixing.
Thanks! that what I needed
Regarding your question, I think sterretje gave good advice about putting the library in the src
subfolder of the sketch.
As a side note:
1steve:
I think I know library are to go in C:program(x86)/ arduino/...............
Don't install libraries under the Arduino IDE installation folder. The reason is that when you upgrade to a different version of the Arduino IDE they will all be lost. Instead you should always install libraries to the libraries
subfolder of your sketchbook folder. You can find the sketchbook folder location in the Arduino IDE at File > Preferences > Sketchbook location.