# NervesTime.RTC.NXP

[![Hex version]( "Hex version")](

NervesTime.RTC implementations for common NXP chips

## Currently supported modules

|model|datasheet|elixir module|
| PCA8565 | | `NervesTime.RTC.NXP.PCA8565` |
| PCF8563 | | `NervesTime.RTC.NXP.PCF8563` |

## Using

First add this project to your `mix` dependencies:

def deps do
    {:nerves_time_rtc_nxp, "~> 0.2.0"}

And then update your `:nerves_time` configuration to point to it:

config :nerves_time, rtc: NervesTime.RTC.NXP.PCA8565

It's possible to override the default I2C bus and address via options:

config :nerves_time, rtc: {NervesTime.RTC.NXP.PCA8565, [bus_name: "i2c-2", address:

Check the logs for error messages if the RTC doesn't appear to work.