feat: bootstrap esp32-c6 embassy lighting controller
This commit is contained in:
commit
bb81182daa
13 files changed
+2926
No files matched your search
@@ -0,0 +1,22 @@
|
||||
//! Board wiring and strip geometry.
|
||||
//!
|
||||
//! Everything that changes when the hardware changes lives here.
|
||||
|
||||
/// Number of WS2812B pixels on the strip.
|
||||
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.
|
||||
pub const MAX_DUTY: u8 = 200;
|
||||
|
||||
/// Rotary encoder detents per full revolution, used to scale a turn into a
|
||||
/// brightness step.
|
||||
pub const STEPS_PER_BRIGHTNESS_UNIT: i32 = 1;
|
||||
|
||||
/// Hold time that separates a click from a long press.
|
||||
pub const LONG_PRESS_MS: u64 = 600;
|
||||
|
||||
/// Contact settle time for the encoder push button.
|
||||
pub const DEBOUNCE_MS: u64 = 15;
|
||||
Reference in new issue
Block a user