BME680 Library  0.5
Library for the Bosch BME680 Air Quality sensor
bme680_settings.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

char bme680_loadSettings (bme680_t *dev)
 Loads settings values that have been saved in the bme680_t structure into the BME680 sensor. More...
 
void bme680_configure (bme680_t *dev, char setting, int value)
 Change configurable settings for the BME680 sensor. 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_configure()

void bme680_configure ( bme680_t dev,
char  setting,
int  value 
)

Change configurable settings for the BME680 sensor.

Parameters
*devpointer to the bme680 device.
settingthe setting to change. May be

Ambient Temperature in deg C (BME680_SETTING_AMB_TEMP) - default is 25. Heater Temperature in deg C (BME680_SETTING_HEATER_TEMP) - default is 320. Heater Duration in ms (BME680_SETTING_HEATER_DURATION) - default is 150. Low-pass filter size (BME680_SETTING_FILTER_SIZE) - default is BME680_FILTER_SIZE_3. Temperature samples to take (BME680_SETTING_TEMP_SAMPLES) - default is BME680_OS_8X. Pressure samples to take (BME680_SETTING_PRESSURE_SAMPLES) - default is BME680_OS_4X. Humidity samples to take (BME680_SETTING_HUMIDITY_SAMPLES) - default is BME680_OS_2X.

Parameters
valuethe value to write into that setting.

◆ bme680_loadSettings()

char bme680_loadSettings ( bme680_t dev)

Loads settings values that have been saved in the bme680_t structure into the BME680 sensor.

Note
Must be called after calling bem680_init...() and before calling bme_readSensor().
Parameters
*devpointer to the bme680 device.