6 #ifndef ACE_TIME_HW_DS3231_H 7 #define ACE_TIME_HW_DS3231_H 9 #if ! defined(UNIX_HOST_DUINO) 16 class HardwareDateTime;
17 class HardwareTemperature;
44 static const uint8_t kAddress = 0x68;
void readDateTime(HardwareDateTime *dateTime) const
Read the time into the HardwareDateTime object.
void readTemperature(HardwareTemperature *temperature) const
Read the temperature into the HardwareTemperature object.
The temperature in Celcius as a signed (8.8) fixed-point integer.
void setDateTime(const HardwareDateTime &dateTime) const
Set the DS3231 with the HardwareDateTime values.
The date (year, month, day) and time (hour, minute, second) fields supported by the DS3231 RTC chip...
A class that reads and writes HardwareDateTime and HardwareTemperature from a DS3231 RTC chip...