Commit Graph
10 Commits
Author SHA1 Message Date
Matt Spencer f7f97e8685 chore: track lighting integration branch 2026-11-16 00:45:33 +00:00
Matt Spencer 65f951b890 feat: add Zigbee brightness and color temperature 2026-11-16 00:33:54 +00:00
Matt Spencer 1aa6ba3c5f feat: add Zigbee-controlled smart light 2026-11-15 23:22:20 +00:00
Matt Spencer 9793bc62af feat(encoder): trigger on B and sample A
Waiting on both phases via select drops the pending future each time the
other fires, so B's edges were being lost and a later sample of B always
read it back at rest. Triggering on B's falling edge and sampling A there
is stable on this encoder.

Also moves the encoder to D10/D9/D8 next to the power pads, drops the
strip to a single LED for bring-up, and makes saturation an adjustable
axis so the light defaults to white.
2026-10-17 18:22:09 +01:00
Matt Spencer b0e3b6f4a0 fix(flash): give zigbee persistence its own partition
The default espflash layout hands the whole 0x10000..0x400000 span to the
app partition, so the storage range sat inside it. Shrink the app and
reserve a dedicated storage partition above it.
2026-10-17 16:13:47 +01:00
Matt Spencer 74b3a4a06b feat(status): blink the on-board LED as a heartbeat
Also moves the encoder and button onto XIAO ESP32C6 pads: GPIO4/5/6 are
JTAG pins and are not broken out on this board.
2026-10-17 16:08:30 +01:00
Matt Spencer ebc2f3be7a feat(led): use the published esp-hal-smartled driver
Moves the whole esp stack to esp-hal 1.2 (see the zigbee-rs submodule),
which lets esp-hal-smartled 0.18 be used unmodified from crates.io
instead of a hand-rolled RMT driver.
2026-10-17 15:58:22 +01:00
Matt Spencer 1ec7408f8e checkpoint: vendored esp-hal-smartled with widened esp-hal bound 2026-10-17 15:49:50 +01:00
Matt Spencer e021ab751a refactor(led): drive the strip through the smart-leds traits
Replaces the hand-rolled Rgb type, HSV conversion and brightness scaling
with RGB8, hsv2rgb, gamma and brightness from smart-leds, and exposes the
driver as SmartLedsWriteAsync. The RMT symbol encoding stays in-tree: no
upstream RMT driver currently targets esp-hal 1.1.
2026-10-17 15:42:13 +01:00
Matt Spencer bb81182daa feat: bootstrap esp32-c6 embassy lighting controller 2026-10-17 15:21:58 +01:00