New to Arduino. I have watched all the Jeremy Blum tutorials and read several of yours, and I have built and run several of the circuits. So far, all my code errors have been my own cockpit errors but this one is really frustrating.
I am trying to verify the SD card/Datalogger/RTC Fridge logger program (before I start to modify it for my own use). I keep getting errors telling me that the RTClib.h doesn't exist. I have read many, many forum entries regarding this problem and have tried the fixes suggested, but none of them work for me.
So, I have just copied the first three statements to their own file:
#include <SD.h>
#include <Wire.h>
#include "RTClib.h"
That's all there is to it. I still get the error:
sketch_may12a.cpp:3:20: error: RTClib.h: No such file or directory
Here's where my sketches are located:
C:\Users\ztpete\New My Documents\Arduino\arduino-1.0\sketchbook
Here's where my RTClib subdirectory is located:
C:\Users\ztpete\New My Documents\Arduino\arduino-1.0\libraries\RTClib
Within the subdirectory \RTClib are the following files, with file sizes, just to show they aren't empty:
keywords.txt 1Kb
RTClib.cpp 7Kb
RTClib.h 2Kb
I also tried changing the double quotes to <> as suggested by one forum entry.
(See below)
It appears that the double quotes tell the program to look for the library within
the sketchbook or within the subdirectory that has the same name as the sketch.
#include <SD.h>
#include <Wire.h>
#include <RTClib.h>
This form gives me the same result, which is:
sketch_may12a.cpp:3:20: error: RTClib.h: No such file or directory
An interesting thing (to me):
The "SD" and the "Wire" terms are highlighted in Orange. But the RTClib.h is
written in black characters when I use the <>, but in Blue when I use "". I don't know if this helps, but the ".h" in the first two terms is NOT highlighted (eg: they are in black), whereas the ".h" in the RTClib.h term IS highlighted in Blue when I use the double quotes.
The thing is, I don't even have an RTC shield yet. All I want from this program is a way to automatically make a new filename each time my program runs.
What am I doing wrong?
petespaco

