zephyr/samples/sensor/dht_polling/sample.yaml
Francois Ramu 298bf49048 samples: sensor: dht_polling run sample on sensor present
Add a fixture to run the sample only when the DHT sensor
HX330x is present (shield) on the nucleo_f40re board
'fixture_i2c_hs300x'
The stm32f401 Nucleo board itself has no sensor mounted

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2024-06-14 14:01:41 -04:00

22 lines
501 B
YAML

#
# Copyright (c) 2023 Ian Morris
#
# SPDX-License-Identifier: Apache-2.0
#
sample:
description: Digital Humidity Temperature polling sample
name: DHT polling sample
tests:
sample.sensor.dht_polling:
tags: sensors
filter: dt_alias_exists("dht0")
integration_platforms:
- nucleo_f401re
harness: console
harness_config:
fixture: fixture_i2c_hs300x
type: one_line
regex:
- "[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]*: temp is (.*) °C humidity is (.*) %RH"