* Using rtc.lostPower() with DS1307 might not work correctly because it doesn't have the lostPower feature. * Using !rtc.isrunning() with DS3231 might not effectively check for power loss, and you may ...
#define RTC_ADDRESS 0x68 // I2C address for DS3231 RTC module #define SEC_REGISTER 0x00 // RTC register address for seconds #define MIN_REGISTER 0x01 // RTC register address for minutes #define ...