With no modification, the example doesn't compile. It begins
and that's enough to make the compiler complain. The compiler says
Not surprisingly, the same thing happens with the SetTime example.
Code:
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
Code:
. . . arduino-1.8.8\hardware\teensy\avr\libraries\DS1307RTC\DS1307RTC.cpp:217:11: error: redefinition of 'DS1307RTC RTC'
DS1307RTC RTC = DS1307RTC(); // create an instance for the user
^
In file included from ...arduino-1.8.8\hardware\teensy\avr\libraries\DS1307RTC\DS1307RTC.cpp:32:0:
... arduino-1.8.8\hardware\teensy\avr\libraries\DS1307RTC\DS1307RTC.h:37:11: note: DS1307RTC RTC previously declared here
Not surprisingly, the same thing happens with the SetTime example.
Last edited: