GrovePi v0.2.0 GrovePi.DHT

Read temperature and humidity from the Grove DHT sensor.

Example use:

iex> pin = 3
iex> {:ok, pid}=GrovePi.DHT.start_link(pin)
{:ok, #PID<0.199.0>}
iex> GrovePi.DHT.read_temp_and_humidity(pin)
{23.0, 40.0}

Summary

Types

humidity()
humidity() :: float
module_type()
module_type() :: integer
temp()
temp() :: float

Functions

handle_call(arg, from, state)
init(list)
read_temp_and_humidity(pin, module_type \\ 0)
read_temp_and_humidity(GrovePi.pin, module_type) :: {temp, humidity}
start_link(pin, opts \\ [])