AceTime
1.7.3
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
|
Same as the hw/DS3231 class, but designed for use with one of the templatized interface classes of AceWire to access the I2C bus, instead of hardcoding the use of the <Wire.h> library. More...
#include <DS3231Module.h>
Public Member Functions | |
DS3231Module (T_WIREI &wireInterface) | |
Constructor. | |
void | readDateTime (HardwareDateTime *dateTime) override |
Read the time into the HardwareDateTime object. | |
void | setDateTime (const HardwareDateTime &dateTime) override |
Set the DS3231 with the HardwareDateTime values. | |
void | readTemperature (HardwareTemperature *temperature) override |
Read the temperature into the HardwareTemperature object. | |
Same as the hw/DS3231 class, but designed for use with one of the templatized interface classes of AceWire to access the I2C bus, instead of hardcoding the use of the <Wire.h> library.
Allows different software and hardware I2C libraries to be selected at compile time.
T_WIREI | type of the AceWire implementation to communicate over I2C |
Definition at line 43 of file DS3231Module.h.