Adafruit Unified Sensor interface for the temperature sensor component of AHT10/AHT20.
More...
#include <Adafruit_AHTX0.h>
Adafruit Unified Sensor interface for the temperature sensor component of AHT10/AHT20.
◆ Adafruit_AHTX0_Temp()
Create an Adafruit_Sensor compatible object for the temp sensor.
- Parameters
-
parent | A pointer to the AHTX0 class |
◆ getEvent()
bool Adafruit_AHTX0_Temp::getEvent |
( |
sensors_event_t * |
event | ) |
|
Gets the temperature as a standard sensor event.
- Parameters
-
event | Sensor event object that will be populated |
- Returns
- true
◆ getSensor()
void Adafruit_AHTX0_Temp::getSensor |
( |
sensor_t * |
sensor | ) |
|
Gets the sensor_t object describing the AHTx0's tenperature sensor.
- Parameters
-
sensor | The sensor_t object to be populated |
The documentation for this class was generated from the following files: