samples: sensor: bme280: Add overlay
And an overlay for the nRF52840 DK to be able to build the sample after the transition to Device Tree. Fixes #23148. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
18a744861f
commit
340ead4239
2 changed files with 14 additions and 1 deletions
13
samples/sensor/bme280/nrf52840_pca10056.overlay
Normal file
13
samples/sensor/bme280/nrf52840_pca10056.overlay
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&i2c0 {
|
||||
bme280@76 {
|
||||
compatible = "bosch,bme280";
|
||||
reg = <0x76>;
|
||||
label = "BME280";
|
||||
};
|
||||
};
|
|
@ -4,7 +4,7 @@ tests:
|
|||
sample.sensor.bme280:
|
||||
harness: console
|
||||
tags: sensors
|
||||
depends_on: i2c bme280
|
||||
platform_whitelist: nrf52840_pca10056
|
||||
harness_config:
|
||||
type: one_line
|
||||
regex:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue