feat: web UI with AP, Wi-Fi client, mDNS, presets, OTA and DDP

- Wi-Fi access point led-XXXXXX plus a client network, configurable
  mDNS name and static client address
- Preset tiles with an editor, drag to reorder, default presets,
  global brightness, Run and Edit modes, collapsible menu on phones
- 35 patterns ported from led-driver, up to 512 LEDs, colour order,
  max brightness and data pin settings
- Over-the-air updates (POST /ota) with rollback, and a CLI in tools/ota.py
- DDP receiver on UDP 4048 with tools/ddp_test.py
- LED refresh every 10 ms; lwIP sockets raised to 16 so mDNS, HTTP
  and DDP can run together

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-11 01:54:32 +13:00
1 parent 89f996096c
commit 9a04d28ecf
32 files changed
+6210 -398

No files matched your search

+10 -1
View File
@@ -4,8 +4,11 @@
#include "esp_log.h"
#include "nvs_flash.h"
#include "ddp.h"
#include "net.h"
#include "ota.h"
#include "patterns.h"
#include "presets.h"
#include "web.h"
static const char *TAG = "example";
@@ -20,9 +23,15 @@ extern "C" void app_main(void)
}
ESP_ERROR_CHECK(err);
patterns_start();
hw_cfg_t hw;
settings_load_hw(&hw);
patterns_start(hw);
ESP_ERROR_CHECK(presets_init());
presets_apply_startup();
ESP_ERROR_CHECK(net_start());
ESP_ERROR_CHECK(web_start());
ESP_ERROR_CHECK(ddp_start());
ota_confirm_later();
char ssid[16];
net_ap_ssid(ssid, sizeof(ssid));