AceTime
1.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.
|
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;
48 static const uint8_t kAddress = 0x68;
void setDateTime(const HardwareDateTime &dateTime) const
Set the DS3231 with the HardwareDateTime values.
The temperature in Celcius as a signed (8.8) fixed-point integer.
void readDateTime(HardwareDateTime *dateTime) const
Read the time into the HardwareDateTime object.
A class that reads and writes HardwareDateTime and HardwareTemperature from a DS3231 RTC chip.
void readTemperature(HardwareTemperature *temperature) const
Read the temperature into the HardwareTemperature object.
The date (year, month, day) and time (hour, minute, second) fields supported by the DS3231 RTC chip.