feat: ESP-NOW link, beat sync and control messages in the C++ driver
- espnow_link, ctrl_msg and beat_sync: the reliable link, envelopes and beat-synced timing. - ctrl_msg: accept an envelope with the trailing save byte. - patterns_frame() and espnow_link_poll() split out of their tasks, so the WebAssembly simulator can drive one frame and one link pass from a timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
94e300f6ad
commit
24dd5ffb15
30 files changed
+2159
-158
No files matched your search
+5
-3
@@ -634,9 +634,11 @@ bool fx_radiate(fx_t &f, st_t &s)
|
||||
int nc = get_colours(f, def, 1, c);
|
||||
int b = f.pr->brightness;
|
||||
rgb off_c = ab(mk(f.pr->bg[0], f.pr->bg[1], f.pr->bg[2]), b);
|
||||
int spacing = nz(f.pr->n[1], 1);
|
||||
int outward = nz(f.pr->n[2], 1);
|
||||
int ret = nz(f.pr->n[3], 1);
|
||||
// n1 spacing (LEDs); n2/n3 rise and fall in ms, default half a period each so a ring is seen
|
||||
int half = (int)(period_of(f) / 2) < 1 ? 1 : (int)(period_of(f) / 2);
|
||||
int spacing = nz(f.pr->n[1], 24);
|
||||
int outward = nz(f.pr->n[2], half);
|
||||
int ret = nz(f.pr->n[3], half);
|
||||
int maxd = spacing / 2;
|
||||
int life = outward + ret;
|
||||
int num = f.n;
|
||||
|
||||
Reference in new issue
Block a user