This library allows interfacing with the MCP3008 analog to digital converter module on a Raspberry PI.
Add the library to your mix.exs
.
def deps do
[
{:mcp3008, "~> 0.1.0"}
]
end
Add the server to your supervision tree and specify a CLK port value.
def children() do
[
{Mcp3008.Server, [port]}
]
end