You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status LED implementation with no dependencies - #151
Refactor the StatusHandler to eliminate reliance on the FastLED library, replacing it with a custom color structure and direct GPIO manipulation for LED control. This change simplifies the code and enhances maintainability.
No actionable comments were generated in the recent review.
Summary by CodeRabbit
Improvements
Status indicator colors are now sent through the RGB LED interface, with color channels handled in the expected order.
Timed fading now dims each color channel independently, providing smoother transitions as the indicator changes.
Walkthrough
The ESP32 status handler replaces FastLED color state and output with an RGB color value and ordered LED writes. It updates color setters and fade behavior. The PlatformIO configuration removes the FastLED dependency and changes the project description.
Changes
Status LED handling
Layer / File(s)
Summary
RGB color state and setters include/esp/StatusHandler.h, src/esp/StatusHandler.cpp
The handler stores color as red, green, and blue channels. Its color setters use named color values and RGB fields.
LED output and fade updates src/esp/StatusHandler.cpp, platformio.ini
The handler writes pending colors to the LED with GRB ordering and decrements nonzero channels during fading. The project configuration removes FastLED and updates the project description.
Change: Refactor
Merge Risk: Minimal · up to 98c9f
The change replaces FastLED with direct RGB LED writes and keeps the same color and fade behavior. No concrete merge-blocking problem was identified. Testing on target hardware is still worthwhile.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the status LED implementation in StatusHandler no longer depends on external libraries. The summary shows FastLED removed from the ESP32 environment, a custom Color st…
Description check
The description states that StatusHandler drops the FastLED dependency in favor of a custom color structure and direct LED control. This matches the summary, which shows the Color struct, the removed …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the status LED implementation in StatusHandler no longer depends on external libraries. The summary shows FastLED removed from the ESP32 environment, a custom Color struct, and direct RGB LED writes. The title is short and specific, though 'with no dependencies' is slightly broad because the change removes one dependency (FastLED) rather than all of them.
Full details: Description check
Explanation
The description states that StatusHandler drops the FastLED dependency in favor of a custom color structure and direct LED control. This matches the summary, which shows the Color struct, the removed FastLED include and platformio.ini dependency, and the new rgbLedWriteOrdered output path. The description is brief and does not list the color renames, but it is clearly related to the changeset.
Finishing Touches
Simplify code
Commit to this branch
Create a new PR
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit watched the colors glow, Red and green, then blue in tow. The channels fade, one step at a time, GRB lights answer with a shine. I nibble clover as they gleam!
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 0e31104a-2d70-4380-9c1c-ce39fcedc02e
Commits
Reviewing files that changed from the base of the PR and between 7271fe3 and 98c9f6b.
Files selected for processing: 3
include/esp/StatusHandler.h
platformio.ini
src/esp/StatusHandler.cpp
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
JanPetterMG
changed the title
Refactor Status LED implementation to remove external dependency
Status LED implementation with no dependencies
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor the StatusHandler to eliminate reliance on the FastLED library, replacing it with a custom color structure and direct GPIO manipulation for LED control. This change simplifies the code and enhances maintainability.