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.
This commit is contained in:
Matt Spencer committed 2026-10-17 18:22:09 +01:00
1 parent b0e3b6f4a0
commit 9793bc62af
6 files changed
+192 -97

No files matched your search

+11 -8
View File
@@ -4,17 +4,20 @@ version = "0.1.0"
edition = "2024"
[features]
default = ["esp32c6"]
default = ["esp32c6", "zigbee"]
## Join a Zigbee network. Disable to bring up the local hardware on its own:
## the stack reboots the device when it cannot find its coordinator.
zigbee = ["dep:esp-radio", "dep:zigbee", "dep:zigbee-cluster-library", "dep:zigbee-mac", "dep:zigbee-types"]
esp32c6 = [
"esp-alloc/esp32c6",
"esp-backtrace/esp32c6",
"esp-bootloader-esp-idf/esp32c6",
"esp-hal/esp32c6",
"esp-println/esp32c6",
"esp-radio/esp32c6",
"esp-radio?/esp32c6",
"esp-rtos/esp32c6",
"esp-storage/esp32c6",
"zigbee-mac/esp32c6",
"zigbee-mac?/esp32c6",
]
[dependencies]
@@ -23,7 +26,7 @@ esp-backtrace = { version = "0.20", features = ["panic-handler", "println"] }
esp-bootloader-esp-idf = "0.6"
esp-hal = { version = "1.2", features = ["log-04", "unstable"] }
esp-println = { version = "0.18", features = ["log-04"] }
esp-radio = { version = "1.0.0-beta.1", features = ["ieee802154", "unstable"] }
esp-radio = { version = "1.0.0-beta.1", features = ["ieee802154", "unstable"], optional = true }
esp-rtos = { version = "0.4", features = ["embassy", "log-04"] }
esp-storage = { version = "0.10", features = ["embedded-storage"] }
@@ -42,10 +45,10 @@ esp-hal-smartled = "0.18"
# vendored upstream: the lighting cluster is not implemented there yet, so the
# path dependency lets us add it in-tree and upstream it later
zigbee = { path = "vendor/zigbee-rs/zigbee", features = ["storage"] }
zigbee-cluster-library = { path = "vendor/zigbee-rs/zigbee-cluster-library" }
zigbee-mac = { path = "vendor/zigbee-rs/zigbee-mac" }
zigbee-types = { path = "vendor/zigbee-rs/zigbee-types" }
zigbee = { path = "vendor/zigbee-rs/zigbee", features = ["storage"], optional = true }
zigbee-cluster-library = { path = "vendor/zigbee-rs/zigbee-cluster-library", optional = true }
zigbee-mac = { path = "vendor/zigbee-rs/zigbee-mac", optional = true }
zigbee-types = { path = "vendor/zigbee-rs/zigbee-types", optional = true }
[profile.release]
debug = true