Skip to content

Commit

Permalink
doxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Mar 15, 2020
1 parent 563b7c2 commit d158260
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Adafruit_AHT10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ bool Adafruit_AHT10::begin(TwoWire *wire, int32_t sensor_id) {
return true;
}

/**
* @brief Gets the status (first byte) from AHT10
*
* @returns 8 bits of status data, or 0xFF if failed
*/
uint8_t Adafruit_AHT10::getStatus(void) {
uint8_t ret;
if (!i2c_dev->read(&ret, 1)) {
Expand Down
12 changes: 6 additions & 6 deletions Adafruit_AHT10.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#include <Adafruit_Sensor.h>
#include <Wire.h>

#define AHT10_I2CADDR_DEFAULT 0x38 ///< AHT10 default i2c address
#define AHT10_CMD_CALIBRATE 0xE1
#define AHT10_CMD_TRIGGER 0xAC
#define AHT10_CMD_SOFTRESET 0xBA
#define AHT10_STATUS_BUSY 0x80
#define AHT10_STATUS_CALIBRATED 0x08
#define AHT10_I2CADDR_DEFAULT 0x38 ///< AHT10 default i2c address
#define AHT10_CMD_CALIBRATE 0xE1 ///< Calibration command
#define AHT10_CMD_TRIGGER 0xAC ///< Trigger reading command
#define AHT10_CMD_SOFTRESET 0xBA ///< Soft reset command
#define AHT10_STATUS_BUSY 0x80 ///< Status bit for busy
#define AHT10_STATUS_CALIBRATED 0x08 ///< Status bit for calibrated

class Adafruit_AHT10;

Expand Down

0 comments on commit d158260

Please sign in to comment.