libyggdrasil
v1.0.0
|
Humidity sensor SHT40-AD1B-R2 driver. More...
#include <humidity_sensor.hpp>
Public Types | |
enum | Heat : u8 { Heat::_200mWFor1s = 0x39, Heat::_200mWFor0p1s = 0x32, Heat::_110mWFor1s = 0x2F, Heat::_110mWFor0p1s = 0x24, Heat::_20mWFor1s = 0x1E, Heat::_20mWFor0p1s = 0x15 } |
Heater commands for the SHT40-AD1B-R2 sensor. More... | |
enum | Precision : u8 { Precision::High = 0xFD, Precision::Medium = 0xF6, Precision::Low = 0xE0 } |
Public Member Functions | |
HumiditySensor ()=delete | |
Static Public Member Functions | |
static bool | init () |
Initialization of the SHT40-AD1B-R2 relative humidity and temperature sensor. More... | |
static float | getTemperature (Precision precision=Precision::High) |
Get the temperature without using the heater. More... | |
static float | getHumidity (Precision precision=Precision::High) |
Get the temperature without using the heater. More... | |
static void | enableHeater (Heat level) |
Enable the heater module on the sensor. More... | |
Humidity sensor SHT40-AD1B-R2 driver.
|
strong |
Heater commands for the SHT40-AD1B-R2 sensor.
|
strong |
|
delete |
|
inlinestatic |
Enable the heater module on the sensor.
level | Power and duration command |
|
inlinestatic |
Get the temperature without using the heater.
precision | Precision for the conversion |
|
inlinestatic |
Get the temperature without using the heater.
precision | Precision for the conversion |
|
inlinestatic |
Initialization of the SHT40-AD1B-R2 relative humidity and temperature sensor.