Adafruit SHT31-D Library
Classes | Macros | Variables
Adafruit_SHT31.h File Reference
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>

Go to the source code of this file.

Classes

class  Adafruit_SHT31
 

Macros

#define SHT31_DEFAULT_ADDR   0x44
 
#define SHT31_MEAS_HIGHREP_STRETCH   0x2C06
 
#define SHT31_MEAS_MEDREP_STRETCH   0x2C0D
 
#define SHT31_MEAS_LOWREP_STRETCH   0x2C10
 
#define SHT31_MEAS_HIGHREP   0x2400
 
#define SHT31_MEAS_MEDREP   0x240B
 
#define SHT31_MEAS_LOWREP   0x2416
 
#define SHT31_READSTATUS   0xF32D
 
#define SHT31_CLEARSTATUS   0x3041
 
#define SHT31_SOFTRESET   0x30A2
 
#define SHT31_HEATEREN   0x306D
 
#define SHT31_HEATERDIS   0x3066
 
#define SHT31_REG_HEATER_BIT   0x0d
 

Variables

TwoWire Wire
 

Detailed Description

This is a library for the SHT31 Digital Humidity & Temp Sensor

Designed specifically to work with the Digital Humidity & Temp Sensor --—> https://www.adafruit.com/product/2857

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

Macro Definition Documentation

◆ SHT31_DEFAULT_ADDR

#define SHT31_DEFAULT_ADDR   0x44

SHT31 Default Address

◆ SHT31_MEAS_HIGHREP_STRETCH

#define SHT31_MEAS_HIGHREP_STRETCH   0x2C06

Measurement High Repeatability with Clock Stretch Enabled

◆ SHT31_MEAS_MEDREP_STRETCH

#define SHT31_MEAS_MEDREP_STRETCH   0x2C0D

Measurement Medium Repeatability with Clock Stretch Enabled

◆ SHT31_MEAS_LOWREP_STRETCH

#define SHT31_MEAS_LOWREP_STRETCH   0x2C10

Measurement Low Repeatability with Clock Stretch Enabled

◆ SHT31_MEAS_HIGHREP

#define SHT31_MEAS_HIGHREP   0x2400

Measurement High Repeatability with Clock Stretch Disabled

◆ SHT31_MEAS_MEDREP

#define SHT31_MEAS_MEDREP   0x240B

Measurement Medium Repeatability with Clock Stretch Disabled

◆ SHT31_MEAS_LOWREP

#define SHT31_MEAS_LOWREP   0x2416

Measurement Low Repeatability with Clock Stretch Disabled

◆ SHT31_READSTATUS

#define SHT31_READSTATUS   0xF32D

Read Out of Status Register

◆ SHT31_CLEARSTATUS

#define SHT31_CLEARSTATUS   0x3041

Clear Status

◆ SHT31_SOFTRESET

#define SHT31_SOFTRESET   0x30A2

Soft Reset

◆ SHT31_HEATEREN

#define SHT31_HEATEREN   0x306D

Heater Enable

◆ SHT31_HEATERDIS

#define SHT31_HEATERDIS   0x3066

Heater Disable

◆ SHT31_REG_HEATER_BIT

#define SHT31_REG_HEATER_BIT   0x0d

Status Register Heater Bit

Variable Documentation

◆ Wire

TwoWire Wire

Forward declarations of Wire for board/variant combinations that don't have a default 'Wire'