Keeping all libraries in the Arduino sketch directory


hi!

i know supposed place external libraries under "libraries" folder of arduino install directory, have project uses several libraries have created project , keep code self contained , out of main pde file. however, have tried place libraries in same directory main pde file can more keep synced in subversion (i work on over multiple computers) , don't want have keep going , syncing libraries separately. also, sake of being able zip of sketch folder , know contains needs.

so, possible anyhow?

hi tsag

you can keep library files in same folder program.  include statement needs use double quotation marks.  example:

code: [select]
#include "myanimations.h"

quote
i know supposed place external libraries under "libraries" folder of arduino install directory


in current version of ide, standard libraries shipped ide stored in path of arduino executable, per comment.

but ide allows store additional libraries in folder under default sketch folder.  preferred location installing libraries suppliers, example.  in ide, can add them using sketch - import library - add library.  default sketch folder can checked in file - preferences, , libraries go folder called "libraries" under that.

the advantage libraries in folder not affected if reinstall or upgrade ide. 

regards

ray


Arduino Forum > Using Arduino > Programming Questions > Keeping all libraries in the Arduino sketch directory


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support