Hello
This is probably an error on my part, but I can't get the examples to compile.
Freshly downloaded Jack Christensen's library from GitHub, all looks fine, but running, say, the TimeRTC example, I get the following errors. Deleted library once and re-copied into Arduino/Sketchbook/Libraries, but to no avail.
Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Phil\Documents\Arduino\libraries\DS3232RTC\examples\TimeRTC\TimeRTC.ino:8:0:
C:\Users\Phil\Documents\Arduino\libraries\DS3232RTC/DS3232RTC.h:136:26: error: 'tmElements_t' has not been declared
static byte read(tmElements_t &tm);
^
C:\Users\Phil\Documents\Arduino\libraries\DS3232RTC/DS3232RTC.h:137:20: error: 'tmElements_t' has not been declared
byte write(tmElements_t &tm);
^
C:\Users\Phil\Documents\Arduino\libraries\DS3232RTC\examples\TimeRTC\TimeRTC.ino: In function 'void setup()':
TimeRTC:15: error: 'setSyncProvider' was not declared in this scope
setSyncProvider(RTC.get); // the function to get the time from the RTC
^
TimeRTC:16: error: 'timeStatus' was not declared in this scope
if(timeStatus() != timeSet)
^
TimeRTC:16: error: 'timeSet' was not declared in this scope
if(timeStatus() != timeSet)
^
C:\Users\Phil\Documents\Arduino\libraries\DS3232RTC\examples\TimeRTC\TimeRTC.ino: In function 'void digitalClockDisplay()':
TimeRTC:31: error: 'hour' was not declared in this scope
Serial.print(hour());
^
TimeRTC:32: error: 'minute' was not declared in this scope
printDigits(minute());
^
TimeRTC:33: error: 'second' was not declared in this scope
printDigits(second());
^
TimeRTC:35: error: 'day' was not declared in this scope
Serial.print(day());
^
TimeRTC:37: error: 'month' was not declared in this scope
Serial.print(month());
^
TimeRTC:39: error: 'year' was not declared in this scope
Serial.print(year());
^
exit status 1
'setSyncProvider' was not declared in this scopeThis report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Grateful for any advice, please