2020-10-21 05:56:14 +08:00
|
|
|
sample:
|
|
|
|
description: Demonstration of the PWM LED driver
|
|
|
|
name: PWM LED sample
|
|
|
|
tests:
|
|
|
|
sample.drivers.led.led_pwm:
|
|
|
|
filter: dt_compat_enabled("pwm-leds")
|
|
|
|
tags: LED
|
|
|
|
depends_on: pwm
|
2020-11-11 13:59:24 +08:00
|
|
|
platform_exclude: reel_board
|
2021-01-15 23:26:02 +08:00
|
|
|
timeout: 15
|
|
|
|
harness: console
|
|
|
|
harness_config:
|
|
|
|
type: multi_line
|
|
|
|
ordered: true
|
|
|
|
regex:
|
|
|
|
- "Found device LED_PWM_\\d+"
|
|
|
|
- "Testing LED \\d+"
|
|
|
|
- "Turning on"
|
|
|
|
- "Turning off"
|
|
|
|
- "Increasing brightness gradually"
|
|
|
|
- "Blinking on: 0.1 sec, off: 0.1 sec"
|
|
|
|
- "Blinking on: 1 sec, off: 1 sec"
|
|
|
|
- "Turning off"
|