Nerves.Grove v0.5.0 Nerves.Grove.Potentiometer

Seeed Studio Grove Rotary Angle Sensor Seeed Studio Grove Slide Potentiometer

Example

alias Nerves.Grove.Potentiometer

{:ok, pid} = Potentiometer.start_link(address)

Potentiometer.read_value(pid)

Summary

Functions

read_value(pid, samples \\ 5)

Specs

read_value(pid, integer) :: float
start_link(address \\ 80)

Specs

start_link(byte) :: {:ok, pid} | {:error, any}