Hi I'm working my way through the starter kit for the arduino Uno and it has gone relatively smoothly until I have hit lesson no 19 which is the DS1307 real time clock module.
I have downloaded every relevant library also some others from GITHUB after doing quite a lot of research into the problem and keep coming up with this message;
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"
DS1307_Example:6:8: error: 'DS3231 clock' redeclared as different kind of symbol
DS3231 clock;
^~~~
from E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino:4:
c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\time.h:164:20: note: previous declaration 'clock_t clock()'
extern clock_t clock(void);
^~~~~
DS1307_Example:7:1: error: 'RTCDateTime' does not name a type; did you mean 'DateTime'?
RTCDateTime dt;
^~~~~~~~~~~
DateTime
E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino: In function 'void setup()':
DS1307_Example:15:9: error: request for member 'begin' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'
clock.begin();
^~~~~
DS1307_Example:22:9: error: request for member 'setDateTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'
clock.setDateTime(DATE, TIME);
^~~~~~~~~~~
E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino: In function 'void loop()':
DS1307_Example:31:3: error: 'dt' was not declared in this scope
dt = clock.getDateTime();
^~
DS1307_Example:31:14: error: request for member 'getDateTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'
dt = clock.getDateTime();
^~~~~~~~~~~
Multiple libraries were found for "DS3231.h"
exit status 1
'DS3231 clock' redeclared as different kind of symbol
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I am using the code which came from the starter disc.
Any ideas?