#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

int aht1x_begin(int i2c_dev, uint8_t i2c_address);
int aht1x_getEvent(int i2c_dev, uint8_t i2c_address, float *_humidity, float *_temperature);

#endif
