Adafruit SHT4x Library
|
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_Sensor.h>
Go to the source code of this file.
Classes | |
class | Adafruit_SHT4x_Humidity |
Adafruit Unified Sensor interface for the humidity sensor component of SHT4x. More... | |
class | Adafruit_SHT4x_Temp |
Adafruit Unified Sensor interface for the temperature sensor component of SHT4x. More... | |
class | Adafruit_SHT4x |
Macros | |
#define | SHT4x_DEFAULT_ADDR 0x44 |
#define | SHT4x_NOHEAT_HIGHPRECISION 0xFD |
#define | SHT4x_NOHEAT_MEDPRECISION 0xF6 |
#define | SHT4x_NOHEAT_LOWPRECISION 0xE0 |
#define | SHT4x_HIGHHEAT_1S 0x39 |
#define | SHT4x_HIGHHEAT_100MS 0x32 |
#define | SHT4x_MEDHEAT_1S 0x2F |
#define | SHT4x_MEDHEAT_100MS 0x24 |
#define | SHT4x_LOWHEAT_1S 0x1E |
#define | SHT4x_LOWHEAT_100MS 0x15 |
#define | SHT4x_READSERIAL 0x89 |
#define | SHT4x_SOFTRESET 0x94 |
Enumerations | |
enum | sht4x_precision_t { SHT4X_HIGH_PRECISION, SHT4X_MED_PRECISION, SHT4X_LOW_PRECISION } |
enum | sht4x_heater_t { SHT4X_NO_HEATER, SHT4X_HIGH_HEATER_1S, SHT4X_HIGH_HEATER_100MS, SHT4X_MED_HEATER_1S, SHT4X_MED_HEATER_100MS, SHT4X_LOW_HEATER_1S, SHT4X_LOW_HEATER_100MS } |
This is a library for the SHT4x Digital Humidity & Temp Sensor
Designed specifically to work with the SHT4x Humidity & Temp Sensor --—> https://www.adafruit.com/product/4885
These sensors use I2C to communicate, 2 pins are required to interface
Adafruit invests time and resources providing this open source code, please support Adafruit andopen-source hardware by purchasing products from Adafruit!
Limor Fried/Ladyada (Adafruit Industries).
BSD license, all text above must be included in any redistribution
#define SHT4x_DEFAULT_ADDR 0x44 |
SHT4x I2C Address
#define SHT4x_NOHEAT_HIGHPRECISION 0xFD |
High precision measurement, no heater
#define SHT4x_NOHEAT_MEDPRECISION 0xF6 |
Medium precision measurement, no heater
#define SHT4x_NOHEAT_LOWPRECISION 0xE0 |
Low precision measurement, no heater
#define SHT4x_HIGHHEAT_1S 0x39 |
High precision measurement, high heat for 1 sec
#define SHT4x_HIGHHEAT_100MS 0x32 |
High precision measurement, high heat for 0.1 sec
#define SHT4x_MEDHEAT_1S 0x2F |
High precision measurement, med heat for 1 sec
#define SHT4x_MEDHEAT_100MS 0x24 |
High precision measurement, med heat for 0.1 sec
#define SHT4x_LOWHEAT_1S 0x1E |
High precision measurement, low heat for 1 sec
#define SHT4x_LOWHEAT_100MS 0x15 |
High precision measurement, low heat for 0.1 sec
#define SHT4x_READSERIAL 0x89 |
Read Out of Serial Register
#define SHT4x_SOFTRESET 0x94 |
Soft Reset
enum sht4x_precision_t |
How precise (repeatable) the measurement will be
enum sht4x_heater_t |
Optional pre-heater configuration setting