I've downloaded the Time.zip package from Arduino Playground - Time because I want to start working with time functions. However, I'm having trouble figuring out how to properly install the library. Would someone please help me out? Thanks!
Open your Arduino sketchbook folder. If there is already a folder there called libraries, place the library folder in there. If not, create a folder called libraries in the sketchbook folder, and drop the unzipped library folder in there. Then re-start the Arduino programming environment, and you should see your new library in the Sketch > Import Library menu.
Following the instructions above, on my linux pc, I was unsure whether to copy the new /NewLib/ into
/home/USERNAME/sketchbook/libraries/NewLib/.
or
/home/USERNAME/sketchbook/sketch/libraries/NewLib/.
so I tried each separately, and when the IDE started up it did not seem to know about either and did not recognise a proper #include <NewLib.h> which gave compiler errors.
So, there might be something else to do to get libraries 'installed' as well as copied to the right place while the IDE is off. If so, what is it?
As a kludge to workaround this, I copied most of the contents of the .h to the top of my .ino sketch,
added declarations near the top for two named functions in the .cpp of the library, copied some variables declarations from the top of the .cpp to the top of the .ino, and copied the functions from the .cpp to lower down in my .ino
Horrid, but that worked. Now how does one instal a library properly, rather than raiding it for functions?
Hi, I am new to Arduino and I am trying to find the Time library zip file. I was expecting it to be in the ide libraries but could not find it there or anyplace. I have looked on my hard drive, the internet etc. When I search to find a download location all I find is how to install the library. Your help will be appreciated.
Edit: From the 'Playground' page, you should also be able to find your way to the "TimeAlarms" and "DS1307RTC" libraries, if you need them.
Edit2: Actually, just looking at the IDE, they're also available for download/installation directly. (You couldn't have looked too hard here either.)
Sketch >Include Library >Manage Libraries , then under "Topic", select "Timing" to shorten the list. You'll find all three libs, along with a range of other timing-related libraries.