|
Adafruit SHTC3 Library
|
#include <Adafruit_SHTC3.h>
Public Member Functions | |
| Adafruit_SHTC3 (void) | |
| SHTC3 constructor. | |
| ~Adafruit_SHTC3 (void) | |
| SHTC3 destructor. | |
| bool | begin (TwoWire *theWire=&Wire) |
| uint16_t | readID (void) |
| void | reset (void) |
| void | sleep (bool sleepmode) |
| Brings the SHTC3 in or out of sleep mode. More... | |
| void | lowPowerMode (bool readmode) |
| Tells the SHTC3 to read future data in low power (fast) or normal (precise) More... | |
| bool | getEvent (sensors_event_t *humidity, sensors_event_t *temp) |
| Gets the humidity sensor and temperature values as sensor events. More... | |
| Adafruit_Sensor * | getTemperatureSensor (void) |
| Gets the Adafruit_Sensor object for the SHTC3's humidity sensor. More... | |
| Adafruit_Sensor * | getHumiditySensor (void) |
| Gets the Adafruit_Sensor object for the SHTC3's humidity sensor. More... | |
Protected Attributes | |
| float | _temperature |
| Last reading's temperature (C) | |
| float | _humidity |
| Last reading's humidity (percent) | |
| uint16_t | _sensorid_humidity |
| ID number for humidity. | |
| uint16_t | _sensorid_temp |
| ID number for temperature. | |
| Adafruit_I2CDevice * | i2c_dev = NULL |
| Pointer to I2C bus interface. | |
| Adafruit_SHTC3_Temp * | temp_sensor = NULL |
| Temp sensor data object. | |
| Adafruit_SHTC3_Humidity * | humidity_sensor |
| Humidity sensor data object. More... | |
Friends | |
| class | Adafruit_SHTC3_Temp |
| class | Adafruit_SHTC3_Humidity |
Driver for the Adafruit SHTC3 Temperature and Humidity breakout board.
| bool Adafruit_SHTC3::begin | ( | TwoWire * | theWire = &Wire | ) |
Initialises the I2C bus, and assigns the I2C address to us.
| theWire | The I2C bus to use, defaults to &Wire |
| uint16_t Adafruit_SHTC3::readID | ( | void | ) |
Gets the ID register contents.
| void Adafruit_SHTC3::reset | ( | void | ) |
Performs a reset of the sensor to put it into a known state.
| void Adafruit_SHTC3::sleep | ( | bool | sleepmode | ) |
Brings the SHTC3 in or out of sleep mode.
| sleepmode | If true, go into sleep mode. Else, wakeup |
| void Adafruit_SHTC3::lowPowerMode | ( | bool | readmode | ) |
Tells the SHTC3 to read future data in low power (fast) or normal (precise)
| readmode | If true, use low power mode for reads |
| bool Adafruit_SHTC3::getEvent | ( | sensors_event_t * | humidity, |
| sensors_event_t * | temp | ||
| ) |
Gets the humidity sensor and temperature values as sensor events.
| humidity | Sensor event object that will be populated with humidity data |
| temp | Sensor event object that will be populated with temp data |
| Adafruit_Sensor * Adafruit_SHTC3::getTemperatureSensor | ( | void | ) |
Gets the Adafruit_Sensor object for the SHTC3's humidity sensor.
| Adafruit_Sensor * Adafruit_SHTC3::getHumiditySensor | ( | void | ) |
Gets the Adafruit_Sensor object for the SHTC3's humidity sensor.
|
friend |
Gives access to private members to Temp data object
|
friend |
Gives access to private members to Humidity data object
|
protected |
Humidity sensor data object.
1.8.13