Skip to content

samples: fade_led: Refactor LED fade logic #93744

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

Conversation

GomaaMohamed
Copy link

Move the LED fade logic from the main loop into a separate update_fade_state function to improve code modularity and reusability. This change makes the code easier to maintain and extend with new fade patterns.

Move the LED fade logic from the main loop into a separate
update_fade_state function to improve code modularity and
reusability. This change makes the code easier to maintain
and extend with new fade patterns.

Signed-off-by: Gomaa Mohammed Eldebaby <[email protected]>
@GomaaMohamed GomaaMohamed force-pushed the refactor_sample_fade_led branch from 00d50fa to b100498 Compare July 25, 2025 23:39
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ C)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@GomaaMohamed GomaaMohamed deleted the refactor_sample_fade_led branch July 26, 2025 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants