1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/driver_bme680
Leandro Lanzieri ab88c0fdb2
pkg/driver_bme680/kconfig: remove prompt and depend on driver module
The BME680 package cannot be used by itself, but is needed for RIOT
BME680 driver. The user should not select this directly, so we remove
the prompt and additionally add a dependency on the driver.
2021-12-12 11:33:04 +01:00
..
contrib pkg/driver_bme680: migrate to ztimer 2021-12-01 17:54:55 +01:00
include pkg: add Bosch Sensortech BME680 driver 2020-03-12 08:42:11 +01:00
patches pkg: add Bosch Sensortech BME680 driver 2020-03-12 08:42:11 +01:00
doc.txt pkg: add Bosch Sensortech BME680 driver 2020-03-12 08:42:11 +01:00
Kconfig pkg/driver_bme680/kconfig: remove prompt and depend on driver module 2021-12-12 11:33:04 +01:00
Makefile pkg: silent make commands with RIOT_CI_BUILD=1 2021-03-12 16:05:18 +01:00
Makefile.dep pkg/driver_bme680: migrate to ztimer 2021-12-01 17:54:55 +01:00
Makefile.include pkg: add Bosch Sensortech BME680 driver 2020-03-12 08:42:11 +01:00
README.md pkg: add Bosch Sensortech BME680 driver 2020-03-12 08:42:11 +01:00

BME680 vendor driver

Introduction

The BME680_driver is an I2C/SPI API for BME680 sensor.

The library is written and maintained by Bosch Sensortec. It is platform independent, as long as the right drivers are available for the given MCU.

In addition, this driver can use floating point if available on your MCU. By default, this package does not use it.

Usage

Refer to the code documentation at GitHub for more information on the API.

RIOT-OS interface

BME680 sensors are connected either via I2C 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. Both I2C and SPI can be used in one application.

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

In order to use floating point, you can enable module bme680_fp variable:

USEMODULE='bme680_fp bme680_i2c' make BOARD=... -C tests/driver_bme680

The following callbacks add support for the included drivers via I2C and SPI peripherals:

  • bme680_i2c_read_hal
  • bme680_i2c_write_hal
  • bme680_spi_read_hal
  • bme680_spi_write_hal