I've searched and read through dozens of postings on the Forum and not found anything related exactly to my problem. I am a total novice at this stuff.
I'm trying to interface a DS1307 RTC to my Uno board. I found the excellent tutorial on the subject at LadyAda. I downloaded the LadyAda RTC library and used the example code they listed/provided and tried to put it in a Sketch.
The sketch code starts with:
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
RTC_DS1307 RTC;
void setup () {
Serial.begin(57600);
Wire.begin();
RTC.begin();
When I try to compile, I get a bunch of error messages:
Date_and_time_from_DS1307.cpp:4:20: error: RTClib.h: No such file or directory
Date_and_time_from_DS1307:5: error: 'RTC_DS1307' does not name a type
Date_and_time_from_DS1307.cpp: In function 'void setup()':
Date_and_time_from_DS1307:10: error: 'RTC' was not declared in this scope
Date_and_time_from_DS1307:15: error: 'DateTime' was not declared in this scope
Date_and_time_from_DS1307.cpp: In function 'void loop()':
Date_and_time_from_DS1307:20: error: 'DateTime' was not declared in this scope
Date_and_time_from_DS1307:20: error: expected ;' before 'now' Date_and_time_from_DS1307:22: error: 'now' was not declared in this scope Date_and_time_from_DS1307:42: error: expected
;' before 'future'
Date_and_time_from_DS1307:45: error: 'future' was not declared in this scope
I can see the RTClib.h file in a folder in my libraries folder under my Arduino 0021 folder...why does the compiler say no such file exists? And why all the other errors that appear to be syntax-related? Am I doing something fundamentally wrong?
Any assistance would be appreciated...thanks in advance.