Expand description
LED ring rendering — re-exported from the led-ring crate.
This module provides spatial patterns, temporal modifiers, and ring animation for WS2812/SK6812 LED rings. Generic over ring size.
Structs§
- LedRing
- Stateful LED ring that tracks animation and renders frames.
- Rgb
- RGB color (matches smart_leds::RGB8 layout).
- Ring
Animation - Complete ring animation state.
Enums§
- Modifier
- Temporal modifier — how rendered pixels change over time.
- Renderer
- Spatial pattern — which LEDs are lit and what color.
Constants§
- IDENTITY_
MAP - Identity clock map for N LEDs (position i maps to physical index i).
- LEDS_
PER_ RING - Default LEDs per ring for the pedalboard hardware.
- PEDALBOARD_
CLOCK_ MAP - Clock-position mapping for the pedalboard PCB (12 LEDs). PCB layout: D1=3h, D2=2h, …, D12=4h.
Functions§
- hue_
to_ rgb - HSV hue (0–255) to RGB at full saturation/value.
Type Aliases§
- Ring
Frame - Frame type for 12-LED rings (pedalboard default).