56 Serial.println(
"Failed to find PCF8563 - check your wiring!");
67 timeinfo.tm_yday = 2025 - 1900;
68 timeinfo.tm_mon = 1 - 1;
69 timeinfo.tm_mday = 17;
91 size_t written = strftime(
buf, 64,
"%A, %B %d %Y %H:%M:%S", &timeinfo);
97 written = strftime(
buf, 64,
"%b %d %Y %H:%M:%S", &timeinfo);
103 written = strftime(
buf, 64,
"%A, %d. %B %Y %I:%M%p", &timeinfo);
Driver for the PCF8563 real-time clock (RTC) over I2C.
void setDateTime(RTC_DateTime datetime) override
Set the RTC date/time.
bool begin(SensorCommCustom::CustomCallback callback)
Initialize the device using a user-provided transport callback.
RTC_DateTime getDateTime() override
Get the current RTC date/time.