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