Adafruit LPS2X Barometric Pressure Sensor Library
|
#include <Adafruit_LPS2X.h>
Public Member Functions | |
Adafruit_LPS2X_Pressure (Adafruit_LPS2X *parent) | |
Create an Adafruit_Sensor compatible object for the pressure sensor. More... | |
bool | getEvent (sensors_event_t *) |
Gets the pressure as a standard sensor event. More... | |
void | getSensor (sensor_t *) |
Gets the sensor_t data for the LPS2X's tenperature. More... | |
Adafruit Unified Sensor interface for the pressure sensor component of LPS2X
|
inline |
Create an Adafruit_Sensor compatible object for the pressure sensor.
parent | A pointer to the LPS2X class |
bool Adafruit_LPS2X_Pressure::getEvent | ( | sensors_event_t * | event | ) |
Gets the pressure as a standard sensor event.
event | Sensor event object that will be populated |
void Adafruit_LPS2X_Pressure::getSensor | ( | sensor_t * | sensor | ) |
Gets the sensor_t data for the LPS2X's tenperature.
sensor | The allocated sensor_t that we will fill! |