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:
1 parent
b0e3b6f4a0
commit
9793bc62af
6 files changed
+192
-97
No files matched your search
+4
-1
@@ -3,7 +3,10 @@
|
||||
//! Everything that changes when the hardware changes lives here.
|
||||
|
||||
/// Number of WS2812B pixels on the strip.
|
||||
pub const LED_COUNT: usize = 60;
|
||||
///
|
||||
/// Held at 1 during bring-up to keep the current draw within what the board
|
||||
/// can supply; a full strip needs its own 5V supply.
|
||||
pub const LED_COUNT: usize = 1;
|
||||
|
||||
/// Ceiling on the duty cycle applied to every channel, as a fraction of 255.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user