File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ //! # Smart Leds Trait
2
+ //!
3
+ //! Smart leds is a collection of crates to use smart leds on embedded devices with rust.
4
+ //!
5
+ //! Examples of smart leds include the popular WS2812 (also called Neopixel),
6
+ //! APA102 (DotStar) and other leds, which can be individually adressed.
7
+ //!
8
+ //! This crate is used as a common base, so that breaking changes which would
9
+ //! force all other crates to be updated, can be avoided.
10
+ //!
11
+ //! End users should use the [smart-leds](https://crates.io/crates/smart-leds)
12
+ //! crate, which contains various convenience functions.
1
13
#![ no_std]
2
14
3
15
pub use { rgb:: RGB , rgb:: RGB16 , rgb:: RGB8 , rgb:: RGBA } ;
4
16
5
17
pub struct White < C > ( pub C ) ;
6
18
19
+ /// The RGBW Pixel
20
+ ///
21
+ /// This is used for leds, that in addition to RGB leds also contain a white led
7
22
pub type RGBW < ComponentType , WhiteComponentType = ComponentType > =
8
23
RGBA < ComponentType , White < WhiteComponentType > > ;
9
24
25
+ /// A trait that smart led drivers implement
26
+ ///
27
+ /// The amount of time each iteration of `iterator` might take is undefined.
28
+ /// Drivers, where this might lead to issues, aren't expected to work in all cases.
10
29
pub trait SmartLedsWrite {
11
30
type Error ;
12
31
type Color ;
You can’t perform that action at this time.
0 commit comments