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.
This commit is contained in:
1 parent
ebc2f3be7a
commit
74b3a4a06b
4 files changed
+42
-6
No files matched your search
+6
-2
@@ -7,8 +7,8 @@ pub const LED_COUNT: usize = 60;
|
||||
|
||||
/// Ceiling on the duty cycle applied to every channel, as a fraction of 255.
|
||||
///
|
||||
/// Keeps the supply current within what the dev board's regulator can source
|
||||
/// when every pixel is driven white.
|
||||
/// Takes the top off peak current draw. This is a brightness cap, not a
|
||||
/// current limit: a strip of this length still needs its own 5V supply.
|
||||
pub const MAX_DUTY: u8 = 200;
|
||||
|
||||
/// Rotary encoder detents per full revolution, used to scale a turn into a
|
||||
@@ -20,3 +20,7 @@ pub const LONG_PRESS_MS: u64 = 600;
|
||||
|
||||
/// Contact settle time for the encoder push button.
|
||||
pub const DEBOUNCE_MS: u64 = 15;
|
||||
|
||||
/// Heartbeat blink: a brief pulse, repeated once a second.
|
||||
pub const HEARTBEAT_ON_MS: u64 = 50;
|
||||
pub const HEARTBEAT_PERIOD_MS: u64 = 1000;
|
||||
Reference in new issue
Block a user