17 #ifndef WipperSnapper_I2C_Driver_SI7021_H 18 #define WipperSnapper_I2C_Driver_SI7021_H 21 #include <Adafruit_Si7021.h> 79 tempEvent->temperature =
_si7021->readTemperature();
94 humidEvent->relative_humidity =
_si7021->readHumidity();
102 #endif // WipperSnapper_I2C_Driver_SI7021 bool getEventAmbientTemp(sensors_event_t *tempEvent)
Gets the SI7021's current temperature.
Definition: WipperSnapper_I2C_Driver_SI7021.h:77
Adafruit_Si7021 * _si7021
SI7021 driver object.
Definition: WipperSnapper_I2C_Driver_SI7021.h:99
bool getEventRelativeHumidity(sensors_event_t *humidEvent)
Gets the SI7021's current relative humidity reading.
Definition: WipperSnapper_I2C_Driver_SI7021.h:92
Base class for I2C Drivers.
Definition: WipperSnapper_I2C_Driver.h:30
WipperSnapper_I2C_Driver_SI7021(TwoWire *i2c, uint16_t sensorAddress)
Constructor for a SI7021 sensor.
Definition: WipperSnapper_I2C_Driver_SI7021.h:41
uint16_t _sensorAddress
The I2C driver's unique I2C address.
Definition: WipperSnapper_I2C_Driver.h:1322
bool begin()
Initializes the SI7021 sensor and begins I2C.
Definition: WipperSnapper_I2C_Driver_SI7021.h:63
Class that provides a driver interface for the SI7021 sensor.
Definition: WipperSnapper_I2C_Driver_SI7021.h:29
~WipperSnapper_I2C_Driver_SI7021()
Destructor for an SI7021 sensor.
Definition: WipperSnapper_I2C_Driver_SI7021.h:52
TwoWire * _i2c
Pointer to the I2C driver's Wire object.
Definition: WipperSnapper_I2C_Driver.h:1321