nerves_time_rtc_ds3231 v0.1.1 NervesTime.RTC.DS3231 View Source
DS3231 RTC implementation for NervesTime
To configure NervesTime to use this module, update the :nerves_time
application
environment like this:
config :nerves_time, rtc: NervesTime.RTC.DS3231
If not using "i2c-1"
or the default I2C bus address, specify them like this:
config :nerves_time, rtc: {NervesTime.RTC.DS3231, [bus_name: "i2c-2", address: 0x69]}
Check the logs for error messages if the RTC doesn't appear to work.
See https://datasheets.maximintegrated.com/en/ds/DS3231.pdf for implementation details.
Link to this section Summary
Functions
Reads an alarm register.
Reads the control register.
Reads the status register.
Reads the temperature register.
Writes an alarm register.
Writes the control register.
Writes the status register.
Link to this section Types
This type represents the many registers whose value is a single bit.
Link to this section Functions
Reads an alarm register.
Reads the control register.
Reads the status register.
Reads the temperature register.
Writes an alarm register.
Writes the control register.
Writes the status register.