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
+4
-2
@@ -78,8 +78,10 @@ static void ddp_task(void *arg)
|
||||
continue;
|
||||
}
|
||||
uint8_t dtype = buf[2];
|
||||
if (dtype != 0x00 && dtype != 0x01) {
|
||||
continue; // only 8-bit RGB
|
||||
// 8-bit RGB: 0x00 (undefined, taken as RGB), 0x01 (the shorthand ddp_test sends) and 0x0B (RGB, 8 bits
|
||||
// per channel, the DDP specification's code, which is what the controller sends)
|
||||
if (dtype != 0x00 && dtype != 0x01 && dtype != 0x0B) {
|
||||
continue;
|
||||
}
|
||||
uint32_t offset = be32(buf + 4);
|
||||
size_t len = be16(buf + 8);
|
||||
|
||||
Reference in new issue
Block a user