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

humidity sensor class More...

#include <Adafruit_AM2320.h>

Inheritance diagram for Adafruit_AM2320::Humidity:

Public Member Functions

 Humidity (Adafruit_AM2320 *parent, int32_t id)
 create a humidity sensor instance More...
 
bool getEvent (sensors_event_t *event)
 read the humidity 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

humidity sensor class

Constructor & Destructor Documentation

◆ Humidity()

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

create a humidity sensor instance

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

Member Function Documentation

◆ getEvent()

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

read the humidity 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::Humidity::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: