GrovePi v0.3.2 GrovePi.DHT View Source
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}
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
read_temp_and_humidity(pin, prefix \\ Default, module_type \\ 0)
View Source
read_temp_and_humidity(GrovePi.pin, atom, module_type) :: {temp, humidity}
Link to this function
start_link(pin, opts \\ [])
View Source
start_link(GrovePi.pin, atom) :: Supervisor.on_start