49 void writeByte(uint8_t offset, uint8_t value);
59 uint8_t readRegister(uint8_t reg);
60 bool writeRegister(uint8_t reg, uint8_t value);
void readTime(RTCTime *value)
Reads the current time from the realtime clock into value.
bool hasUpdates()
Returns true if the realtime clock has updated since the last call to this function.
void writeAlarm(uint8_t alarmNum, const RTCAlarm *value)
Updates the details of the alarm with index alarmNum from value.
void writeTime(const RTCTime *value)
Updates the time in the realtime clock to match value.
Stores date information from a realtime clock chip.
Communicates with a DS1307 realtime clock chip via I2C.
void readDate(RTCDate *value)
Reads the current date from the realtime clock into value.
bool isRealTime() const
Returns true if the realtime clock is on the I2C bus; false if the time and date are simulated...
Stores time information from a realtime clock chip.
Abstract base class for I2C master implementations.
void writeDate(const RTCDate *value)
Updates the date in the realtime clock to match value.
Stores alarm information from a realtime clock chip.
void readAlarm(uint8_t alarmNum, RTCAlarm *value)
Reads the details of the alarm with index alarmNum into value.
DS1307RTC(I2CMaster &bus, uint8_t oneHzPin=255)
Attaches to a realtime clock slave device on bus.
int byteCount() const
Returns the number of bytes of non-volatile memory that can be used for storage of arbitrary settings...
uint8_t readByte(uint8_t offset)
Reads the byte at offset within the realtime clock's non-volatile memory.
Base class for realtime clock handlers.
void writeByte(uint8_t offset, uint8_t value)
Writes value to offset within the realtime clock's non-volatile memory.