Crate smart_leds_trait

Source
Expand description

§Smart Leds Trait

Smart leds is a collection of crates to use smart leds on embedded devices with rust.

Examples of smart leds include the popular WS2812 (also called Neopixel), APA102 (DotStar) and other leds, which can be individually adressed.

This crate is used as a common base, so that breaking changes which would force all other crates to be updated, can be avoided.

End users should use the smart-leds crate, which contains various convenience functions.

Structs§

RGB
A Red + Green + Blue pixel.
RGBA
A Red + Green + Blue + Alpha pixel.
White

Traits§

SmartLedsWrite
A trait that Smart Led Drivers implement
SmartLedsWriteAsync
An async trait that Smart Led Drivers implement

Type Aliases§

RGB8
8-bit RGB
RGB16
16-bit RGB in machine’s native endian
RGBW
The RGBW Pixel