Library to use Microchip MCP family A/D converters with Nerves-Project.
iex> ExMCP3xxx.start_link([family: 3208])
{:ok, #PID}
# ExMCP3xxx.read(channel_number)
iex> ExMCP3xxx.read(7)
342
If available in Hex, the package can be installed
by adding ex_mcp3xxx
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_mcp3xxx, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_mcp3xxx.