samples: sensor: bme680: Add an overlay

Add an overlay for the nRF52840 to be able to build the sample.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2020-03-03 19:57:28 +01:00 committed by Johan Hedberg
parent 340ead4239
commit 6147bd3168
3 changed files with 16 additions and 3 deletions

View file

@ -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

View file

@ -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";
};
};

View file

@ -4,4 +4,4 @@ tests:
sample.sensor.bme680:
harness: sensor
tags: samples sensor
depends_on: i2c bme680
platform_whitelist: nrf52840_pca10056