diff --git a/samples/sensor/bme680/README.rst b/samples/sensor/bme680/README.rst index 850336d6603..d190001ee51 100644 --- a/samples/sensor/bme680/README.rst +++ b/samples/sensor/bme680/README.rst @@ -30,12 +30,12 @@ Building and Running This project outputs sensor data to the console. It requires a BME680 sensor. It should work with any platform featuring a I2C peripheral interface. It does not work on QEMU. -In this example below the :ref:`nrf52_pca10040` board is used. +In this example below the :ref:`nrf52840_pca10056` board is used. .. zephyr-app-commands:: :zephyr-app: samples/sensor/bme680 - :board: nrf52_pca10040 + :board: nrf52840_pca10056 :goals: build flash Sample Output diff --git a/samples/sensor/bme680/nrf52840_pca10056.overlay b/samples/sensor/bme680/nrf52840_pca10056.overlay new file mode 100644 index 00000000000..c98ce3411f9 --- /dev/null +++ b/samples/sensor/bme680/nrf52840_pca10056.overlay @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2020, Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&i2c0 { + bme680@76 { + compatible = "bosch,bme680"; + reg = <0x76>; + label = "BME680"; + }; +}; diff --git a/samples/sensor/bme680/sample.yaml b/samples/sensor/bme680/sample.yaml index 25040c4689f..b35d0986f58 100644 --- a/samples/sensor/bme680/sample.yaml +++ b/samples/sensor/bme680/sample.yaml @@ -4,4 +4,4 @@ tests: sample.sensor.bme680: harness: sensor tags: samples sensor - depends_on: i2c bme680 + platform_whitelist: nrf52840_pca10056