Arduino libraries are a convenient way to share code such as device drivers or commonly used utility functions. This guide details how to install libraries on your computer.
There are two general types of Arduino Libraries:
User Installed Libraries
Where to Install your Libraries?
Your sketchbook folder is the folder where the Arduino IDE stores your sketches.
This folder is automatically created by the IDE when you install it.
One of the best features of the Arduino project is the ability to add on pre-crafted libraries that add hardware support.
There’s tons of them, and you can pick and choose which to install.
They’re only loaded in when the sketch you’re working on needs them, so for the most part you can download and stash them for future use.
Sketches will often depend on libraries, you can see what they are by looking at the top of the sketch. If you see something like:
That means that you’ll need a library called AFMotor.h
If you don’t have it installed you’ll get an error.