Files
03-QNX_Drivers/src/drivers/i2c/aht10/aht10_util.h
gaoyang3513 fc8a1e6620 [Mod] AHT10驱动 添加AHT10源码
1. 参考 Arduino 代码
2026-01-18 09:59:55 +08:00

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