bunting 0.5.0

Pure Rust WS2812 color utilities - no hardware dependencies
Documentation
  • Coverage
  • 95.83%
    23 out of 24 items documented4 out of 18 items with examples
  • Size
  • Source code size: 43.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 418.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • datenkollektiv/rustyfarian-ws2812
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fwaibel

bunting

Pure Rust WS2812 colour utilities — no hardware dependencies, fully no_std.

Encodes RGB pixel data into the bit and byte forms WS2812 hardware expects: GRB packing, MSB-first bit extraction, SPI-prerendered byte buffers, and a grid module for addressing rectangular LED matrices. All hardware- independent, all unit-testable on any host.

Part of the rustyfarian-ws2812 workspace alongside ferriswheel (ring effects) and pennant (status-LED adapters).

Example

use bunting::rgb_to_grb;
use rgb::RGB8;

let red = RGB8::new(255, 0, 0);
assert_eq!(rgb_to_grb(red), 0x00FF00); // Green=0, Red=255, Blue=0

Documentation

Full API docs at docs.rs/bunting.

License

Dual-licensed under MIT or Apache-2.0.

Changelog

See the workspace CHANGELOG for release notes across all crates.