Skip to content

fix: remove Serial overhead from Blink example - #4759

Merged
zackees merged 1 commit into
masterfrom
fix/blink-remove-serial
Oct 7, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/blink-remove-serial

Conversation

@zackees

@zackees zackees commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

Remove Serial initialization and all setup banner prints from Blink on every platform, as requested by the maintainer. Keep LED registration, pin selection and the blink loop unchanged.

Ratchet the existing Uno Blink image/attributed-RAM budget to the measured result and record the correction in agent lessons. Refs #4737; parent remains open.

Local validation

bash bloat uno --example Blink --build --top 15 passes:

default Uno Blink before after saved
image flash 5130 3922 1208
physical RAM 443 266 177
attributed RAM 438 260 178

No Serial/HardwareSerial symbols remain in the resulting ELF. Actual staged sketch matches the edited sketch. Framework Arduino AVR core5.4.0, AVR GCC7.3.0, fbuild2.5.37; build/test performed locally with existing caches.

bash lint passes. bash bloat uno --example Blink --budget tests/data/uno_blink_bloat_budget.json --no-summary passes at3922/260. git diff --check passes.

Manual /code-review of all three changed files: Blink only deletes setup diagnostics, without touching LED behavior; budget uses image/attributed metrics and distinguishes physical RAM; lesson records maintainer correction. No blocking findings. No new workflow, worktree or CI Full.

This is an example correction; it removes incidental Serial overhead and is not credited as a new library optimization. Prior matched controlled measurements remain separate.

@zackees
zackees merged commit a439902 into master Oct 7, 2026
109 of 110 checks passed
@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 19a22fd1-1791-4f5a-8c1f-f9dbd49d525b
📥 Commits

Reviewing files that changed from the base of the PR and between 79c6cdf and a4aa61b.

📒 Files selected for processing (3)
  • agents/tasks/lessons.md
  • examples/Blink/Blink.ino
  • tests/data/uno_blink_bloat_budget.json
 ____________________________________________________________________________________________________________________________________
< Contrary to popular belief, Unix is user friendly. It just happens to be very selective about who it decides to make friends with. >
 ------------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant