Reads a date/time value from a DS1307, DS1337, DS1338, or DS3231real-time clock IC.
Possible errors:
— Invalid I2C address
— Data too long to fit in transmit buffer
— Received NACK on transmit of address
— Received NACK on transmit of data
— Other error
— No bytes written. Probably due to buffer overflow
— Can't read the time. Probably due to buffer underflow
ds1307-rtc-read
@/ds1307-rtc-read
Deprecated: Use `xod-dev/ds-rtc/rtc` instead
Reads a date/time value from a DS1307, DS1337, DS1338, or DS3231real-time clock IC.
Possible errors:
— Invalid I2C address
— Data too long to fit in transmit buffer
— Received NACK on transmit of address
— Received NACK on transmit of data
— Other error
— No bytes written. Probably due to buffer overflow
— Can't read the time. Probably due to buffer underflow
I2Cxod/i2c/i2c
ADDRbyte
I²C address of the IC
UPDpulse
Triggers a new reading, i.e. date/time values update