NervesTime.RTC.Abracon
NervesTime.RTC implementation for common Abracon Real-time clock modules. The following are supported:
Using
First add this project to your mix
dependencies:
def deps do
[
{:nerves_time_rtc_abracon, "~> 0.1.0"}
]
end
And then update your :nerves_time
configuration to point to it:
config :nerves_time, rtc: NervesTime.RTC.Abracon
It's possible to override the default I2C bus and address via options:
config :nerves_time, rtc: {NervesTime.RTC.Abracon, [bus_name: "i2c-2", address:
0x69]}
Check the logs for error messages if the RTC doesn't appear to work.