- Driver acks each completed DDP frame; the test waits for the acks before broadcasting the sync. - Sync listener on UDP 4049: a frame is held until the next sync, then shown. - DDP pixels are shown at full brightness, ignoring the device brightness settings. - "DDP and sync receive on" setting (NVS, network API, web UI); off ignores DDP and sync packets. - ddp_test.py: finds devices on the subnet, drives them in lockstep at a fixed rate, runs animations. - /api/ddp reports sync counters for diagnosis. - Includes in-progress WebSocket, multi-driver web UI and Wi-Fi work from the same tree. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
19 lines
590 B
C
19 lines
590 B
C
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* DDP (Distributed Display Protocol) receiver: RGB pixels over UDP, port 4048. Packets fill the strip
|
|
* while they keep arriving (see patterns.cpp).
|
|
*/
|
|
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
|
|
#define DDP_PORT 4048
|
|
#define DDP_SYNC_PORT 4049 // UDP broadcast sync: "LSY1" + seq (u32, big endian)
|
|
|
|
/** @brief Start listening for DDP packets and sync broadcasts. Off if the saved setting is off. */
|
|
esp_err_t ddp_start(void);
|
|
|
|
/** @brief Turn DDP pixels and sync reception on or off. Packets are ignored while off. */
|
|
void ddp_set_enabled(bool on);
|