View Source pmod_hygro (grisp v2.8.0)

API for the PmodHYGRO.

Start the driver with

1> grisp:add_device(i2c, pmod_hygro).

Summary

Functions

Measure the humidity in %.

Measure the temperature and humidity.

Measure the temperature in °C.

Functions

humid()

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

Measure the humidity in %.

Example

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

measurements()

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

Measure the temperature and humidity.

Example

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

temp()

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

Measure the temperature in °C.

Example

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