1. Locate where you unzipped the Arduino application files.

  2. Navigate to the libraries folder.

  3. Copy the new library files into this libraries folder.

After you have copied the library files into their appropriate location, restart the Arduino IDE so that the library can be referenced in your sketches.

For example, to install the CapSense library from the Chapter 5, Tweeting Bird Feeder project on a computer running Apple OS X, unzip the file. Then place the unzipped CapSense folder into the /Applications/Arduino/Contents/Resources/Java/libraries folder. Restart the Arduino IDE. Create a new Arduino sketch. Type the following sketch into the Arduino IDE window:

#include <CapSense.h>;
void setup() {}
void loop() ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.