led-driver: channel default 11, bare ESP-NOW build, settings and USB config updates

Default ESP-NOW channel is now 11. Adds the bare ESP-NOW-only build option
(CONFIG_LED_ESPNOW_ONLY) with its sdkconfig fragments, a default hostname from
the Wi-Fi MAC, and the related net, link, web and settings changes.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-21 01:18:55 +13:00
1 parent 12a8e225ad
commit c9838d1cbe
18 files changed
+268 -31

No files matched your search

+4 -1
View File
@@ -17,6 +17,8 @@ static const char *NS = "presets";
static preset_t s_list[PRESETS_MAX];
static size_t s_count;
static char s_startup[32];
// The startup preset until one is chosen (one of the defaults built below)
static const char DEFAULT_STARTUP[] = "Off";
static char s_selected[32];
static int find(const char *name)
@@ -365,6 +367,7 @@ esp_err_t presets_init(void)
nvs_handle_t h;
if (nvs_open(NS, NVS_READONLY, &h) != ESP_OK) {
strcpy(s_startup, DEFAULT_STARTUP);
presets_add_defaults(); // a new board
return ESP_OK;
}
@@ -384,7 +387,7 @@ esp_err_t presets_init(void)
}
size_t len = sizeof(s_startup);
if (nvs_get_str(h, "startup", s_startup, &len) != ESP_OK) {
s_startup[0] = '\0';
strcpy(s_startup, DEFAULT_STARTUP); // never set: start dark
}
nvs_close(h);
if (legacy) {