Skip to main content

Module led

Module led 

Source
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).
RingAnimation
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§

RingFrame
Frame type for 12-LED rings (pedalboard default).