BME680 Library  0.5
Library for the Bosch BME680 Air Quality sensor
bme680_altitude.c File Reference

Sensor driver for the Bosch BME680 air quality sensor. This library supports i2c and 4-wire SPI connections, reads temperature, pressure, relative humidity, and VOC levels, and provides limited support for adjusting the sensors settings. More...

#include "bme680.h"

Functions

float bme680_altitude (bme680_t *dev, char unit)
 Retrieve the estimated altitude from the last read of the BME680 device. More...
 

Detailed Description

Sensor driver for the Bosch BME680 air quality sensor. This library supports i2c and 4-wire SPI connections, reads temperature, pressure, relative humidity, and VOC levels, and provides limited support for adjusting the sensors settings.

Author
Matthew Matz
Version
0.5

Function Documentation

◆ bme680_altitude()

float bme680_altitude ( bme680_t dev,
char  unit 
)

Retrieve the estimated altitude from the last read of the BME680 device.

Note
this is calcualted from the pressure measurement. It is not reliable for high altitudes, and it is affected by the ambient (barometric) pressure due to weather. For that reason, the BME680 is better for measuring changes in altitude versus absolute altitude.
Parameters
*devPointer to the bme680 device.
unitUnit of meaure to return the measurement in.
May be METERS or FEET.