Behaviours: gen_server
.
API for the PmodHYGRO .
Start the driver with1> grisp:add_device(i2c, pmod_hygro).
humid/0 | Measure the humidity in %. |
measurements/0 | Measure the temperature and humidity. |
temp/0 | Measure the temperature in °C. |
humid() -> [{humid, float()}]
Measure the humidity in %.
2> pmod_hygro:humid(). [{humid,50.225830078125}]
measurements() -> [{temp, float()} | {humid, float()}]
Measure the temperature and humidity.
2> pmod_hygro:measurements(). [{temp,24.52362060546875},{humid,50.823974609375}]
temp() -> [{temp, float()}]
Measure the temperature in °C.
2> pmod_hygro:temp(). [{temp,24.6746826171875}]
Generated by EDoc