feat: DDP frame sync over UDP broadcast, DDP acks, DDP enable setting
- 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>
This commit is contained in:
1 parent
47f4eba0d6
commit
4cd3bc7973
294 files changed
+48954
-301
No files matched your search
+26
-1
@@ -35,6 +35,15 @@
|
||||
</section>
|
||||
|
||||
<section id="settings" hidden>
|
||||
<div class="subnav" role="tablist" aria-label="Settings sections">
|
||||
<button type="button" class="subtab active" data-sub="devices" role="tab">Devices</button>
|
||||
<button type="button" class="subtab" data-sub="presets" role="tab">Presets</button>
|
||||
<button type="button" class="subtab" data-sub="led" role="tab">LED strip</button>
|
||||
<button type="button" class="subtab" data-sub="network" role="tab">Network</button>
|
||||
<button type="button" class="subtab" data-sub="firmware" role="tab">Firmware</button>
|
||||
</div>
|
||||
|
||||
<div class="subpage" data-sub="devices">
|
||||
<h2>Devices</h2>
|
||||
<p class="muted">Control other LED drivers from this page. Add each one by its address, such as 10.1.1.50 or led-desk.local. The list is kept in this browser.</p>
|
||||
<ul id="devList" class="list"></ul>
|
||||
@@ -46,6 +55,9 @@
|
||||
</form>
|
||||
<p id="devMsg" class="muted" role="status"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="subpage" data-sub="presets" hidden>
|
||||
<h2>Presets</h2>
|
||||
<p class="muted">Adds the default presets (Rainbow, Chase, Aurora, Candle, Twinkle, Flame, Sweep, Off) that are not in the list yet. Your own presets are kept.</p>
|
||||
<button id="addDefaults" type="button">Add default presets</button>
|
||||
@@ -56,6 +68,9 @@
|
||||
<button id="syncPresets" type="button">Sync presets to other devices</button>
|
||||
<p id="syncMsg" class="muted" role="status"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="subpage" data-sub="led" hidden>
|
||||
<h2>LED strip</h2>
|
||||
<form id="hwForm">
|
||||
<label>Number of LEDs
|
||||
@@ -82,6 +97,9 @@
|
||||
</form>
|
||||
<p id="hwMsg" class="muted" role="status"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="subpage" data-sub="firmware" hidden>
|
||||
<h2>Firmware</h2>
|
||||
<p>Running <span id="fwInfo">…</span></p>
|
||||
<form id="fwForm">
|
||||
@@ -95,6 +113,9 @@
|
||||
</div>
|
||||
<p id="fwMsg" class="muted" role="status"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="subpage" data-sub="network" hidden>
|
||||
<h2>Access point</h2>
|
||||
<p>Network <strong id="apName">…</strong> (open). Address <strong>192.168.4.1</strong>.</p>
|
||||
|
||||
@@ -139,10 +160,14 @@
|
||||
<input id="sDns" inputmode="decimal" autocomplete="off">
|
||||
</label>
|
||||
</div>
|
||||
<label class="check"><input type="checkbox" id="apOn"> Access point on</label>
|
||||
<label class="check"><input type="checkbox" id="ddpOn"> DDP and sync receive on</label>
|
||||
<p class="muted">Turn it off to use only your Wi-Fi network. Turning it off needs a connected Wi-Fi network. If the network stays down for about a minute, the access point comes back on by itself.</p>
|
||||
<button type="submit">Save network settings</button>
|
||||
</form>
|
||||
<p id="netMsg" class="muted" role="status"></p>
|
||||
<p class="muted">The access point always stays at 192.168.4.1, so you can get back in if a setting breaks the client connection.</p>
|
||||
<p class="muted">While the access point is on it stays at 192.168.4.1, so you can get back in if a setting breaks the client connection.</p>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
||||
Reference in new issue
Block a user