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 drivers: gpio: Add support for RZ/G3S 2024-12-12 11:12:22 +01:00
custom_dts_binding everywhere: reindent .overlay files with tabs 2024-06-26 15:59:44 +02:00
fade_led samples: fade_led: fix build error when PWM is not enabled 2025-02-06 14:47:15 +01:00
hash_map
minimal tests: add integration_platforms and misc optimizations 2024-11-26 00:12:07 +01:00
rgb_led
servo_motor boards: bbc: adopt new zephyr:board directive and role 2024-10-24 17:51:15 +02:00
sys_heap kernel: sys_heap: stats: save heap pointers to an array during init 2025-01-23 16:37:33 +01:00
threads zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
basic.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00