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:
parent
340ead4239
commit
6147bd3168
3 changed files with 16 additions and 3 deletions
|
@ -30,12 +30,12 @@ Building and Running
|
||||||
This project outputs sensor data to the console. It requires a BME680
|
This project outputs sensor data to the console. It requires a BME680
|
||||||
sensor. It should work with any platform featuring a I2C peripheral interface.
|
sensor. It should work with any platform featuring a I2C peripheral interface.
|
||||||
It does not work on QEMU.
|
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-commands::
|
||||||
:zephyr-app: samples/sensor/bme680
|
:zephyr-app: samples/sensor/bme680
|
||||||
:board: nrf52_pca10040
|
:board: nrf52840_pca10056
|
||||||
:goals: build flash
|
:goals: build flash
|
||||||
|
|
||||||
Sample Output
|
Sample Output
|
||||||
|
|
13
samples/sensor/bme680/nrf52840_pca10056.overlay
Normal file
13
samples/sensor/bme680/nrf52840_pca10056.overlay
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
|
@ -4,4 +4,4 @@ tests:
|
||||||
sample.sensor.bme680:
|
sample.sensor.bme680:
|
||||||
harness: sensor
|
harness: sensor
|
||||||
tags: samples sensor
|
tags: samples sensor
|
||||||
depends_on: i2c bme680
|
platform_whitelist: nrf52840_pca10056
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue