led-ring 0.1.1

No-std LED ring animation engine: spatial patterns (solid, fill, heatmap, dots) + temporal modifiers (blink, pulse, rotate, glow). Generic over ring size.
Documentation
  • Coverage
  • 64.86%
    24 out of 37 items documented1 out of 16 items with examples
  • Size
  • Source code size: 17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 506.38 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • pedalboard/led-ring
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • laenzlinger

LED ring animation engine: spatial patterns + temporal modifiers.

Generic over ring size (N LEDs per ring). Default is 12. No-std compatible, no allocator needed.

Usage

use led_ring::{LedRing, RingAnimation, Rgb, PEDALBOARD_CLOCK_MAP};

// 12-LED ring with pedalboard PCB mapping
let mut ring = LedRing::<12>::new(&PEDALBOARD_CLOCK_MAP);
ring.set(RingAnimation::solid(Rgb::new(255, 0, 0)));
let frame = ring.render(0);
assert!(frame.iter().all(|px| *px == Rgb::new(255, 0, 0)));