Repository navigation
Add effect development guide - #7
Merged
Merged
Conversation
aphelps
requested changes
Apr 18, 2026
| ## 1. Overview | ||
|
|
||
| WLED effects are C++ functions called every frame (~16 ms) that write colors | ||
| to a segment of LEDs. Custom effects in this repo live in `ampworks.cpp` and |
Owner
There was a problem hiding this comment.
This guide should not be specific to my ampworks changes. Effects should either go into FX.cpp, or include the steps to create a new usermodule and add them with it.
aphelps
force-pushed
the
new-effect-guide
branch
from
April 18, 2026 19:48
16e19e4 to
79896fb
Compare
aphelps-claude-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
Rewritten — the guide now opens with a path-chooser table (FX.cpp vs usermod), walks through both registration paths with code examples, and keeps the API reference sections generic. Removed ampworks-specific references; the cross-usermod data section now shows the general lookup pattern rather than MPR121 specifically. The 'Where to Look' table points to upstream WLED source files.
docs/effect-development-guide.md covers both paths for adding a new effect: directly in FX.cpp or via a custom usermod. Includes the PROGMEM descriptor format, Segment API, frame timing, SEGENV state, scratch memory, audio reactivity, cross-usermod data patterns, and pointers to further reading in the codebase. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
aphelps
force-pushed
the
new-effect-guide
branch
from
April 18, 2026 20:02
79896fb to
b2e3bda
Compare
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]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
docs/effect-development-guide.md: a 12-section reference covering effect anatomy, the PROGMEM descriptor format, Segment API, timing, SEGENV state, scratch memory allocation, audio/touch reactivity, and pointers to further reading in the codebaseTest plan
ampworks.cppeffectsblendPixelColor,allocateData, etc.) match signatures inFX.h🤖 Generated with Claude Code