62 Serial.println(
"Failed to find PCF85063 - check your wiring!");
106 Serial.println(
"testAlarmSeconds Interrupt .... ");
108 Serial.println(
"Alarm active");
125 Serial.println(
"testAlarmMinute Interrupt .... ");
127 Serial.println(
"Alarm active");
135 Serial.println(
"setAlarmByHours");
149 Serial.println(
"testAlarmHour Interrupt .... ");
151 Serial.println(
"Alarm active");
163 Serial.println(
"setAlarmByDays");
177 Serial.println(
"testAlarmDay Interrupt .... ");
179 Serial.println(
"Alarm active");
203 Serial.println(
"Test done ...");
Driver for the PCF85063 real-time clock (RTC) over I2C.
void resetAlarm()
Clear/reset the alarm flag.
bool isAlarmActive()
Check whether the alarm flag is active.
void setDateTime(RTC_DateTime datetime) override
Set the RTC date and time.
void setAlarmByHours(uint8_t hour)
Convenience: enable only hour alarm.
bool begin(SensorCommCustom::CustomCallback callback)
Initialize device using a custom transport callback.
void enableAlarm()
Enable alarm interrupt/event generation.
void setAlarmByMinutes(uint8_t minute)
Convenience: enable only minute alarm.
void setAlarmBySecond(uint8_t second)
Convenience: enable only second alarm.
void setAlarmByDays(uint8_t day)
Convenience: enable only day-of-month alarm.
uint8_t getDaysInMonth(uint8_t month, uint16_t year)
Get the number of days in a given month of a specific year, considering leap years.
const char * strftime(DateTimeFormat style=DT_FMT_YMD_HMS_WEEK)
Format the current date and time according to the specified style.