1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_bme680
Alexandre Abadie 5ec41f35c7
tests/driver_bme680: move to test-with-config
If the configuration is correct, the test should succeed, so the test script is adapted
2021-01-25 21:10:08 +01:00
..
tests-with-config tests/driver_bme680: move to test-with-config 2021-01-25 21:10:08 +01:00
app.config.test tests: add common Kconfig configuration for sync 2021-01-20 17:36:14 +01:00
main.c tests/driver_bme680: convert to xtimer_msleep() 2020-11-05 11:32:42 +01:00
Makefile tests: add test application for BME680 driver 2020-03-12 08:42:59 +01:00
Makefile.ci examples: test: remove remaining occurences of wsn430 2020-07-10 16:49:08 +02:00
README.md tests: add test application for BME680 driver 2020-03-12 08:42:59 +01:00

BME680 driver test

About

This is a test application for the BME680 driver. This driver depends on the Bosch Sensortech BME680 driver.

Usage

This test application will initialize one or more BME680 devices to output the following every 5 seconds:

  • Temperature
  • Humidity
  • Pressure
  • Resistance value (depending on VOC gas)

The driver can use either fixed-point or floating-point arithmetic for all conversions. By default fixed-point arithmetic is used. To use floating-point arithmetic, the bme680_fp module has to be enabled. This can be done in the test application by setting the environment variable ENABLE_FP:

ENABLE_FP=1 make BOARD=... -C tests/driver_bme680

Interface

BME680 sensors can be used with I2C and/or SPI. Which interface is used by which BME680 sensor is defined in the bme680_params parameters. The respective implementation is enabled by the modules bme680_i2c and bme680_spi.

Which implementation is used for the test application is defined by the DRIVER environment variable. By default bme680_i2c is used. To use bme680_spi, the DRIVER variable could be set at the make command line:

DRIVER=bme680_spi make BOARD=... -C tests/driver_bme680

It is also possible to use I2C as well SPI simultaneously in the test application:

DRIVER=bme680_spi bme680_i2c' make BOARD=... -C tests/driver_bme680