|
Nol.A SDK Library 26.11.2
For IoT System Software Development
|
Analog SHT3x reader with configurable ADC resolution. More...
#include <SHTSensor.hpp>
Public Member Functions | |
| SHT3xAnalogSensor (uint8_t humidityPin, uint8_t temperaturePin, uint8_t readResolutionBits=10) | |
| virtual | ~SHT3xAnalogSensor () |
| Destroy the analog sensor wrapper. | |
| float | readHumidity () |
| Sample the humidity ADC pin and return percent relative humidity. | |
| float | readTemperature () |
| Sample the temperature ADC pin and return degrees Celsius. | |
Analog SHT3x reader with configurable ADC resolution.
|
inline |
Instantiate a new Sensirion SHT3x Analog sensor driver instance. The required paramters are humidityPin and temperaturePin An optional readResolutionBits can be set since the Arduino/Genuino Zero support 12bit precision analog readings. By default, 10 bit precision is used.
Example usage: SHT3xAnalogSensor sht3xAnalog(HUMIDITY_PIN, TEMPERATURE_PIN); float humidity = sht.readHumidity(); float temperature = sht.readTemperature();
|
inlinevirtual |
Destroy the analog sensor wrapper.