This sample writes the tmp108 temperature to the console once every 3 seconds. There are macro definitions included for turning off and on alerts if that is set up, and also using low power one shot mode. Signed-off-by: Jimmy Johnson <catch22@fastmail.net>
13 lines
284 B
YAML
13 lines
284 B
YAML
sample:
|
|
name: TMP 108 Temperature Sensor Sample
|
|
tests:
|
|
sample.sensor.tmp108:
|
|
harness: console
|
|
tags: sensors
|
|
depends_on: i2c gpio
|
|
filter: dt_compat_enabled("ti,tmp108")
|
|
harness_config:
|
|
type: multi_line
|
|
regex:
|
|
- "temperature is *.*C"
|