- OS: MacOS X 10.7 (Lion)
- Arduino 1.0
What I want to do:
I've downloaded this library for Arduino, and I need to "install" it - so I can use it for my sketches!How:
- Short version:
- Copy the .cpp and .h files of that library in your Arduino/libraries folder.
- Long version:
- Figure out where your Arduino folder is:
- Open the Arduino application
- Go to: Arduino > Preferences
- The first thing you'll see in that Preferences window is the "Sketchbook Location" - that's where your Arduino application will look for things (i.e. the libraries).
- The default is: "/User/
/Documents/Arduino". You can change it to wherever you like. - Copy the library:
- Go to your Arduino folder (from Step 1)
- Create a folder called "libraries" (lowercase, no quotes) if there isn't already
- Copy the .cpp and .h files of your library into this libraries folder.
- Restart the Arduino application (if you have it open).
- Check that you can access your newfound library:
- In your Arduino application, go to: Sketch > Import Library
- Your library should show up under a subsection called "Contributed".
Have fun!


No comments:
Post a Comment