Hi
(I've seen a number of posts with issues about this, but cannot find a solution which matches my problem, sorry if my question does, in fact, have a well documented solution)
I've been trying to get my head around this with a simple sketch before I try to incorporate it into bigger things - code pasted at end.
Many suggests involve using different libraries, and after testing several I've found this one does not actually give me any errors.
There are no errors at any stage, however the monitor just returns zeros, which the library documentation suggests is inability to see the RTC module. I've attached a screenshot of the monitor output
I've tried the IR2 test program from here, and it says it's finding the device which suggests there isn't a hardware fault
https://create.arduino.cc/projecthub/abdularbi17/how-to-scan-i2c-address-in-arduino-eaadda
The code I'm using is below
// DS3232RTC - Version: Latest
#include <DS3232RTC.h>
#include <Wire.h>
DS3232RTC rtc;
void setup() {
Serial.begin(9600);
rtc.begin();
setTime(18, 34, 00, 13, 3, 2021);
rtc.set(now());
}
void loop() {
time_t myTime;
myTime = rtc.get();
Serial.print(time_t());
//Serial.print(rtc.get(hour))
Serial.print("\n");
delay(10000);
}
Any help with resolving this would be gratefully received
Best wishes
andy

