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:
1 parent
89f996096c
commit
9a04d28ecf
32 files changed
+6210
-398
No files matched your search
+9
-1
@@ -63,9 +63,17 @@ public:
|
||||
*/
|
||||
static void hsv2rgb(uint32_t h, uint32_t s, uint32_t v, uint32_t *r, uint32_t *g, uint32_t *b);
|
||||
|
||||
/**
|
||||
* @brief Byte order of the strip, as the letters of the colours in the order they are sent.
|
||||
* "grb" (the default) is the WS2812 norm; "rgb", "rbg", "gbr", "brg" and "bgr" cover the rest.
|
||||
* Unknown names keep the current order.
|
||||
*/
|
||||
void setOrder(const char *order);
|
||||
|
||||
private:
|
||||
size_t num_leds_;
|
||||
std::vector<uint8_t> pixels_; // GRB byte order, 3 bytes per LED, as WS2812 expects
|
||||
uint8_t order_[3] = { 1, 0, 2 }; // indices into (r, g, b) for each byte sent: GRB
|
||||
std::vector<uint8_t> pixels_; // 3 bytes per LED, in the strip's byte order
|
||||
std::vector<uint8_t> tx_pixels_; // pixels_ scaled by brightness_, sent by write()
|
||||
uint8_t brightness_ = 255;
|
||||
rmt_channel_handle_t channel_ = nullptr;
|
||||
|
||||
Reference in new issue
Block a user