A1.3 Windows
-
Locate where you unzipped the Arduino application files.
-
Navigate to the
libraries
folder. -
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 CapSense.zip
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() {} |
Click the Verify button on the Arduino IDE toolbar.
If the CapSense
library was copied
to the correct location, this three-line sketch should compile
without errors.