44#include "freertos/FreeRTOS.h"
68 DateTime(
int seconds_,
int minutes_,
int hours_,
int dayOfMonth_,
int month_,
int year_);
163 uint8_t readReg(
int reg);
165 bool writeReg(
int reg,
int value);
169 bool m_dateTimeValid;
double temperature()
Forces DS3231 to read current temperature.
bool available()
Determines if DS3231 is reachable.
bool setDateTime(DateTime const &value)
Sets current date and time.
DateTime const & datetime()
Queries DS3231 for current date and time.
bool dateTimeValid()
Determines the validity of datetime.
void begin(I2C *i2c)
Initializes DS3231 driver.
void clockEnabled(bool value)
Enables or disables DS3231 oscillator.
DS3231 Real Time Clock driver.
I2C class allows multiple tasks to communicate with I2C devices, serializing read/write jobs.
This file contains FabGL library configuration settings, like number of supported colors,...
This file contains some utility classes and functions.
time_t timestamp(int timezone)
Calculates Unix timestamp.
Represents date and time.
This file contains fabgl::I2C definition.