That sketch does not reference the String class, so it's hard to see what your problem is. With the Time library in the correct place, using 1.0, and with the include statement fixed, I get only this "error" message:
Binary sketch size: 9220 bytes (of a 258048 byte maximum)
PaulS:
The Time library is installed in the wrong place.
What version of the IDE are you using?
That sketch does not reference the String class, so it's hard to see what your problem is. With the Time library in the correct place, using 1.0, and with the include statement fixed, I get only this "error" message:
Binary sketch size: 9220 bytes (of a 258048 byte maximum)
I'm using 0022ubuntu0.1.
I'm confused on where I'm supposed to save my sketchbooks and where Arduino looks for them.
I'm confused on where I'm supposed to save my sketchbooks and where Arduino looks for them.
Sketches are saved in the sketchbook (though why the hell they can't properly refer to it as a folder/directory like the OS does escapes me). There is a folder/directory (or should be) in that sketchbook/folder/directory called libraries, where user-downloaded libraries are to be installed.
Saving sketches and saving libraries are two distinct activities.
OK, I think I got it working. I had to copy the custom library into
/usr/share/arduino/libraries
using a root level account.
Arduino in Ubuntu expects to see the folder (in this example Time) then the files inside the folder. I tried to make a sub directory but it did not detect the libraries and gave a bunch of compile errors.