This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
2e3778a845
zephyr
/
samples
/
drivers
/
led_pwm
/
prj.conf
8 lines
70 B
Plaintext
Raw
Normal View
History
Unescape
Escape
samples: drivers: add test sample for the PWM LED driver This sample allows to test the led-pwm driver. The first "pwm-leds" compatible device instance found in DT is used. For each LEDs attached to this device (child nodes) the same test pattern (described below) is executed. The LED API functions are used to control the LEDs. Test pattern: For each PWM LEDs (one after the other): - turn on - turn off - increase the brightness gradually up to the maximum level - blink (0.1 sec on, 0.1 sec off) - blink (1 sec on, 1 sec off) - turn off Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
2020-10-21 05:56:14 +08:00
CONFIG_LOG=y
CONFIG_PWM=y
CONFIG_LED=y
samples: drivers: led_pwm: enable immediate logging mode The default deferred logging mode is not appropriate here. The LOG_INF messages "Turned on", "Turned off", ... indicate the current state and should be printed immediately to keep log output in sync with actual LED state. Signed-off-by: Oliver Barta <o.barta89@gmail.com>
2022-11-28 18:28:43 +08:00
CONFIG_LOG_MODE_IMMEDIATE=y