/nerves_time_rtc_abracon

NervesTime RTC implementation for Abracon real-time clocks

Primary LanguageElixirOtherNOASSERTION

NervesTime.RTC.Abracon

CircleCI Hex version

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 your module type:

config :nerves_time, rtc: NervesTime.RTC.Abracon.IBO5

It'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.