Adafruit AHT10 Library
Public Member Functions | List of all members
Adafruit_AHTX0_Temp Class Reference

Adafruit Unified Sensor interface for the temperature sensor component of AHT10/AHT20. More...

#include <Adafruit_AHTX0.h>

Inheritance diagram for Adafruit_AHTX0_Temp:

Public Member Functions

 Adafruit_AHTX0_Temp (Adafruit_AHTX0 *parent)
 Create an Adafruit_Sensor compatible object for the temp sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the temperature as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t object describing the AHTx0's tenperature sensor. More...
 

Detailed Description

Adafruit Unified Sensor interface for the temperature sensor component of AHT10/AHT20.

Constructor & Destructor Documentation

◆ Adafruit_AHTX0_Temp()

Adafruit_AHTX0_Temp::Adafruit_AHTX0_Temp ( Adafruit_AHTX0 parent)
inline

Create an Adafruit_Sensor compatible object for the temp sensor.

Parameters
parentA pointer to the AHTX0 class

Member Function Documentation

◆ getEvent()

bool Adafruit_AHTX0_Temp::getEvent ( sensors_event_t *  event)

Gets the temperature as a standard sensor event.

Parameters
eventSensor 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
sensorThe sensor_t object to be populated

The documentation for this class was generated from the following files: