Nerves.Grove v0.5.0 Nerves.Grove.Sensor.Sound

Seeed Studio Grove Sound Sensor

Datasheet

http://www.ti.com/lit/ds/symlink/lm358.pdf

Example

alias Nerves.Grove.Sensor

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

Sensor.Sound.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}