-
Notifications
You must be signed in to change notification settings - Fork 7.7k
samples: basic: fade_led: Add stm32_min_dev.overlay with 4 LEDs #93226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samples: basic: fade_led: Add stm32_min_dev.overlay with 4 LEDs #93226
Conversation
GomaaMohamed
commented
Jul 16, 2025
Hello @GomaaMohamed, and thank you very much for your first pull request to the Zephyr project! |
684b052
to
df4e5a0
Compare
Add a Device Tree overlay for the STM32 Minimum Development Board (Blue) to the fade_led sample, enabling PWM-based LED fading on PA8 (Timer 1, Ch 1), PA9 (Timer 1, Ch 2), PA0 (Timer 2, Ch 1), and PA1 (Timer 2, Ch 2) with a 20 ms and a prescaler of 10000 for STM32F103C8 compatibility. All four LEDs fade without errors. Signed-off-by: Gomaa Mohammed Eldebaby <[email protected]>
df4e5a0
to
ed3bc5f
Compare
|
@nashif @kartben Thank you for being assigned to review this PR. I’ve submitted a Device Tree overlay for the STM32 Minimum Development Board (Blue) to the fade_led sample and confirmed all CI tests have passed. Could you please begin the initial review when you have a moment? I’d be happy to address any questions or provide clarifications. Thanks! |
Hi @GomaaMohamed - board overlays added to code samples are meant to enable hardware features that are actually readily available on the board. Unless I am mistaken, this board does NOT have these 4 LEDs and this overlay effectively corresponds to some custom wiring/breadboarding you did? |
yes, otherwise the overlay is not really useful, right? If everyone adds overlays for whatever custom setup they have, it just doesn't scale :) Luckily there is hopefully more than enough examples already of how to configure PWM LEDs on STM32 if people look at the devicetree files of the dozens of Nucleo boards and DKs in the tree. Hope this makes sense? |
Thank you for clarifying this point. |
It should be closed yes. If you do other contributions in the future it might be a different set of maintainers that will be you main point of contact depending on what files/area you change :) |