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:
Carles Cufi 2020-03-03 19:54:20 +01:00 committed by Johan Hedberg
commit 340ead4239
2 changed files with 14 additions and 1 deletions

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

View file

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