humidity sensor class
More...
#include <Adafruit_AM2320.h>
◆ Humidity()
Adafruit_AM2320::Humidity::Humidity |
( |
Adafruit_AM2320 * |
parent, |
|
|
int32_t |
id |
|
) |
| |
create a humidity sensor instance
- Parameters
-
parent | the pointer to the parent sensor |
id | the id value for the sensor |
◆ 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
-
event | a 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
-
sensor | a pointer to the sensor_t to populate |
The documentation for this class was generated from the following files: