Module pmod_hygro

API for the PmodHYGRO .

Behaviours: gen_server.

Description

API for the PmodHYGRO .

Start the driver with
 1> grisp:add_device(i2c, pmod_hygro).

Function Index

humid/0Measure the humidity in %.
measurements/0Measure the temperature and humidity.
temp/0Measure the temperature in °C.

Function Details

humid/0

humid() -> [{humid, float()}]

Measure the humidity in %.

Example

 2> pmod_hygro:humid().
 [{humid,50.225830078125}]

measurements/0

measurements() -> [{temp, float()} | {humid, float()}]

Measure the temperature and humidity.

Example

 2> pmod_hygro:measurements().
 [{temp,24.52362060546875},{humid,50.823974609375}]

temp/0

temp() -> [{temp, float()}]

Measure the temperature in °C.

Example

 2> pmod_hygro:temp().
 [{temp,24.6746826171875}]


Generated by EDoc