Adafruit AHT10 Library
Classes | Macros
Adafruit_AHTX0.h File Reference
#include "Arduino.h"
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_AHTX0_Humidity
 Adafruit Unified Sensor interface for the humidity sensor component of AHT10/AHT20. More...
 
class  Adafruit_AHTX0_Temp
 Adafruit Unified Sensor interface for the temperature sensor component of AHT10/AHT20. More...
 
class  Adafruit_AHTX0
 Class that stores state and functions for interacting with the AHT10/AHT20 I2C Temperature/Humidity sensor. More...
 

Macros

#define AHTX0_I2CADDR_DEFAULT   0x38
 AHT default i2c address.
 
#define AHTX0_I2CADDR_ALTERNATE   0x39
 AHT alternate i2c address.
 
#define AHTX0_CMD_CALIBRATE   0xE1
 Calibration command.
 
#define AHTX0_CMD_TRIGGER   0xAC
 Trigger reading command.
 
#define AHTX0_CMD_SOFTRESET   0xBA
 Soft reset command.
 
#define AHTX0_STATUS_BUSY   0x80
 Status bit for busy.
 
#define AHTX0_STATUS_CALIBRATED   0x08
 Status bit for calibrated.
 

Detailed Description

I2C Driver for the Adafruit AHT10 / AHT20 Humidity and Temperature Sensor library

This is a library for the Adafruit AHT20 breakout:
https://www.adafruit.com/products/4566

Adafruit invests time and resources providing this open source code,

please support Adafruit and open-source hardware by purchasing products from Adafruit!

BSD license (see license.txt)