I see a function in the NXPMotionSense library to read altitude from the pressure sensor, but it's private:
So, how can I read the altitude in my sketch?
Code:
private:
void update();
bool FXOS8700_begin();
bool FXAS21002_begin();
bool MPL3115_begin();
bool FXOS8700_read(int16_t *data);
bool FXAS21002_read(int16_t *data);
bool MPL3115_read(int32_t *altitude, int16_t *temperature);
...
So, how can I read the altitude in my sketch?