Installing Additional Arduino Libraries
Installing Additional Arduino Libraries
Installing Additional Arduino Libraries
Once you are comfortable with the Arduino software and using the
built-in functions, you may want to extend the ability of your
Arduino with additional libraries.
Then the library manager will open and you will find a list of libraries
that are already installed or ready for installation. In this example
we will install the Bridge library. Scroll the list to find it, then select
the version of the library you want to install. Sometimes only one
version of the library is available. If the version selection menu does
not appear, don't worry: it is normal.
Finally click on install and wait for the IDE to install the new library.
Downloading may take time depending on your connection speed.
Once it has finished, an Installed tag should appear next to the
Bridge library. You can close the library manager.
In the Arduino IDE, navigate to Sketch > Include Library. At the top
of the drop down list, select the option to "Add .ZIP Library''.
You will be prompted to select the library you would like to add.
Navigate to the .zip file's location and open it.
Return to the Sketch > Import Library menu. You should now see
the library at the bottom of the drop-down menu. It is ready to be
used in your sketch. The zip file will have been expanded in
the libraries folder in your Arduino sketches directory.
NB: the Library will be available to use in sketches, but examples for
the library will not be exposed in the File > Examplesuntil after the
IDE has restarted.
Manual installation
To install the library, first quit the Arduino application. Then
uncompress the ZIP file containing the library. For example, if you're
installing a library called "ArduinoParty",
uncompress ArduinoParty.zip. It should contain a folder
calledArduinoParty, with files like ArduinoParty.cpp
and ArduinoParty.h inside. (If the .cpp and .h files aren't in a folder,
you'll need to create one. In this case, you'd make a folder called
"ArduinoParty" and move into it all the files that were in the ZIP file,
like ArduinoParty.cpp and ArduinoParty.h.)
Your Arduino library folder should now look like this (on Windows):
My Documents\Arduino\libraries\ArduinoParty\ArduinoParty.cpp
My Documents\Arduino\libraries\ArduinoParty\ArduinoParty.h
My Documents\Arduino\libraries\ArduinoParty\examples
....
Documents/Arduino/libraries/ArduinoParty/ArduinoParty.cpp
Documents/Arduino/libraries/ArduinoParty/ArduinoParty.h
Documents/Arduino/libraries/ArduinoParty/examples
....
There may be more files than just the .cpp and .h files, just make
sure they're all there. (The library won't work if you put the .cpp and
.h files directly into the libraries folder or if they're nested in an
extra folder. For example:
Documents\Arduino\libraries\ArduinoParty.cpp and
Documents\Arduino\libraries\ArduinoParty\ArduinoParty\ArduinoPart
y.cpp won't work.)
Restart the Arduino application. Make sure the new library appears
in the Sketch->Import Library menu item of the software. That's it!
You've installed a library!