View Source NervesTime.RTC.Abracon
NervesTime.RTC implementation for common Abracon Real-time clock modules. The following are supported:
NervesTime.RTC.Abracon.IBO5- AB-RTCMC-32.768kHz-IBO5-S3NervesTime.RTC.Abracon.B5ZE- AB-RTCMC-32.768kHz-B5ZE-S3
using
Using
First add this project to your mix dependencies:
def deps do
[
{:nerves_time_rtc_abracon, "~> 0.1.0"}
]
endAnd then update your :nerves_time configuration to point to your module type:
config :nerves_time, rtc: NervesTime.RTC.Abracon.IBO5It's possible to override the default I2C bus and address via options:
config :nerves_time, rtc: {NervesTime.RTC.Abracon.IBO5, [bus_name: "i2c-2", address:
0x69]}Check the logs for error messages if the RTC doesn't appear to work.