Closed avaldebe closed 6 years ago
As far as I can tell the PCF8523 and PCF8563 share the same date/time registers but have a different address, 0x68
and 0x51
respectively. Therefore the a simple copy/paste of the RTC_PCF8563 class might be enough.
Not quite the same registers, the PCF8523 resister set starts with 3 control registers (0x00
to 0x02
) and the PCF8563
starts with 2 control registers (0x00
to 0x01
).
For this application I only need to:
I could implement this as generic RTC functions wich take an enum to distinguish the different RTC ICs. Each RTC ICs needs definitions for its I2C address and the seconds register (1st register on date/time). Other than that, the check/read/write should be identical.
The Adafruit RTClib (forked) has been tested on the exp8266, but does not support PCF8563 RTC. The JeeLabs RTClib (original) supports the PCF8563 RTC, but do not know if will work on the exp8266.