Adafruit AM2320 Arduino Library
Public Member Functions | List of all members
Adafruit_AM2320::Temperature Class Reference

temperature sensor class More...

#include <Adafruit_AM2320.h>

Inheritance diagram for Adafruit_AM2320::Temperature:

Public Member Functions

 Temperature (Adafruit_AM2320 *parent, int32_t id)
 create a temperature sensor instance More...
 
bool getEvent (sensors_event_t *event)
 read the temperature from the device and populate a sensor_event_t with the value More...
 
void getSensor (sensor_t *sensor)
 populate a sensor_t with data for this sensor More...
 

Detailed Description

temperature sensor class

Constructor & Destructor Documentation

◆ Temperature()

Adafruit_AM2320::Temperature::Temperature ( Adafruit_AM2320 parent,
int32_t  id 
)

create a temperature sensor instance

Parameters
parentthe pointer to the parent sensor
idthe id value for the sensor

Member Function Documentation

◆ getEvent()

bool Adafruit_AM2320::Temperature::getEvent ( sensors_event_t *  event)

read the temperature from the device and populate a sensor_event_t with the value

Parameters
eventa pointer to the event to populate
Returns
true

◆ getSensor()

void Adafruit_AM2320::Temperature::getSensor ( sensor_t *  sensor)

populate a sensor_t with data for this sensor

Parameters
sensora pointer to the sensor_t to populate

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