61 Serial.println(
"Failed to find PCF8563 - check your wiring!");
103 Serial.println(
"testAlarmMinute Interrupt .... ");
105 Serial.println(
"Alarm active");
113 Serial.println(
"setAlarmByHours");
127 Serial.println(
"testAlarmHour Interrupt .... ");
129 Serial.println(
"Alarm active");
141 Serial.println(
"setAlarmByDays");
155 Serial.println(
"testAlarmDay Interrupt .... ");
157 Serial.println(
"Alarm active");
180 Serial.println(
"Test done ...");
Driver for the PCF8563 real-time clock (RTC) over I2C.
void resetAlarm()
Clear the alarm flag.
void setDateTime(RTC_DateTime datetime) override
Set the RTC date/time.
void setAlarmByMinutes(uint8_t minute)
Convenience API to set an alarm that matches only minutes.
void setAlarmByDays(uint8_t day)
Convenience API to set an alarm that matches only day-of-month.
void setAlarmByHours(uint8_t hour)
Convenience API to set an alarm that matches only hours.
void enableAlarm()
Enable the alarm interrupt.
bool begin(SensorCommCustom::CustomCallback callback)
Initialize the device using a user-provided transport callback.
bool isAlarmActive()
Check whether the alarm flag is active.
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.