zephyr/samples/basic
Luca Burelli 187a8ad09b samples: fade_led: fix build error when PWM is not enabled
Some boards may define LEDs but disable them by default due to conflicts
with other peripherals. In this case, the new sample code introduced in
a5fd92b ("samples: fade_led: use all available LEDs") fails to build
with a missing symbol error.

Fix this by checking if the PWM device (the parent of the LED alias) is
enabled before using it. This implicitly discards invalid aliases.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-02-06 14:47:15 +01:00
..
blinky
blinky_pwm samples: basic: add support for nRF54H20 cpuppr PWM 2025-01-31 09:38:25 +01:00
button
custom_dts_binding
fade_led samples: fade_led: fix build error when PWM is not enabled 2025-02-06 14:47:15 +01:00
hash_map
minimal
rgb_led
servo_motor
sys_heap kernel: sys_heap: stats: save heap pointers to an array during init 2025-01-23 16:37:33 +01:00
threads
basic.rst