Skip to content

Smooth fade for HMTL Sparkle effect - #6

Merged
aphelps-claude-bot merged 1 commit into
mainfrom
sparkle-smooth-fade
Apr 20, 2026
Merged

aphelps-claude-bot merged 1 commit into
mainfrom
sparkle-smooth-fade

Conversation

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Pixels now blend toward their target color each frame instead of snapping instantly
  • New Fade Speed slider (c2, default 32) controls blend step per frame: low = slow dissolve, high = snap
  • Internally allocates a uint32_t targets[] array in SEGENV.data; dice rolls set targets each cycle tick, blendPixelColor() advances each pixel every FRAMETIME
  • Existing Speed / Intensity / BG Reset / Color 2 / Palette parameters unchanged

Submodule PRs

Test plan

  • Flash to device and open HMTL Sparkle effect
  • Verify pixels fade smoothly in (sparkle) and out (BG reset) at default settings
  • Set Fade Speed to 255 — confirm snap behaviour matches old effect
  • Set Fade Speed to 1 — confirm very slow crossfade
  • Confirm no visible glitches at segment boundaries or on first load

🤖 Generated with Claude Code

Comment thread todo_plans/sparkle-fade.md Resolved
Comment thread todo.log Resolved
Comment thread todo.md Resolved
@aphelps
aphelps force-pushed the sparkle-smooth-fade branch from b77c408 to 13e360b Compare April 18, 2026 20:39

@aphelps-claude-bot aphelps-claude-bot left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed todo.md, todo.log, and todo_plans/ from the branch. The PR now contains a single commit updating only the WLED submodule pointer to the sparkle-smooth-fade branch.

@aphelps
aphelps force-pushed the sparkle-smooth-fade branch from d40f236 to bae8b26 Compare April 19, 2026 18:14
@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator Author

Updated to reflect the fix pushed to the WLED submodule (c0c579c1). The branch has been squash-rebased; PR #6 now tracks a single clean commit.

@aphelps
aphelps force-pushed the sparkle-smooth-fade branch from bae8b26 to 75500b5 Compare April 20, 2026 05:23
Comment thread skills/todo-handler/SKILL.md Resolved
@aphelps
aphelps force-pushed the sparkle-smooth-fade branch from 75500b5 to bb9cc3c Compare April 20, 2026 05:40
Track the merged sparkle commit in WLED: smooth per-channel fade with a
cubic Fade Speed slider and fix for the fade-to-black artifact at slow
fade speeds.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@aphelps
aphelps force-pushed the sparkle-smooth-fade branch from bb9cc3c to 0487735 Compare April 20, 2026 05:41
@aphelps-claude-bot
aphelps-claude-bot merged commit 3162962 into main Apr 20, 2026
@aphelps-claude-bot
aphelps-claude-bot deleted the sparkle-smooth-fade branch April 20, 2026 06:12
aphelps pushed a commit that referenced this pull request Aug 29, 2026
esp-now-router#7 merged after this branch was opened, which would have left the
pointer one commit stale the moment #42 landed — the exact recurring miss this
PR exists to fix, reproduced inside the fix for it.

847f30c registers test_espnow_start in the router's SUITES list. Verified from
the superproject: `make test-router` at this pointer now NAMES
test_espnow_start/test_espnow_start and passes it. At 04d0ad2 it did not run at
all, so the previous pointer would have carried #6's code without #6's test.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F4oTr1YW3z7ozksMUT1z5j
aphelps-claude-bot added a commit that referenced this pull request Aug 29, 2026
* Bump esp-now-router 07c264f -> 04d0ad2 (three merges behind)

The superproject recorded 07c264f2, so `make test-router` and CI were exercising
sources from before #4. Three merges were missing:

  #4  the WLED coordinator (onboard/drive devices from firmware)
  #5  coordinator mode gate + blacklist a target that fails a hop
  #6  start ESP-NOW after the STA associates

#6 in particular is not optional for anyone building from this repo: without it
the router pins the boot ESP-NOW channel, the TX confirm callback stops
arriving, and 100% of adverts fail — so a WLED_dev pinned before it records a
backbone that cannot form.

Verified rather than assumed: `make test-router` at the new pointer runs and
passes the coordinator-era suites (test_coord_mode, test_coord_phase,
test_coord_boot, test_onboard_cfg, test_candidate, test_hmtl_to_wled), none of
which exist at 07c264f2. That is the evidence the newer sources are being built,
rather than a green tick from the old ones.

This is the fifth time work has landed where nothing pointed at it. The durable
fix — CI failing when a submodule's origin/main is ahead of the recorded pointer
— is still unbuilt and would have caught every instance.

Known follow-up: esp-now-router#7 registers test_espnow_start in that repo's
SUITES list; it is absent at this pointer, so `make test-router` will not run it
until #7 merges and the pointer moves again.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F4oTr1YW3z7ozksMUT1z5j

* Re-point to 847f30c so the bump carries #7 as well

esp-now-router#7 merged after this branch was opened, which would have left the
pointer one commit stale the moment #42 landed — the exact recurring miss this
PR exists to fix, reproduced inside the fix for it.

847f30c registers test_espnow_start in the router's SUITES list. Verified from
the superproject: `make test-router` at this pointer now NAMES
test_espnow_start/test_espnow_start and passes it. At 04d0ad2 it did not run at
all, so the previous pointer would have carried #6's code without #6's test.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F4oTr1YW3z7ozksMUT1z5j

---------

Co-authored-by: aphelps-claude-bot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants