15 lines
600 B
C
15 lines
600 B
C
#ifndef _ADAFRUIT_AHTX0_H
|
|
#define _ADAFRUIT_AHTX0_H
|
|
|
|
#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
|
|
|
|
bool aht1x_getEvent(sensors_event_t *humidity, sensors_event_t *temp);
|
|
|
|
#endif
|