pub trait Timing {
const TIME_0_LOW: u16;
const TIME_0_HIGH: u16;
const TIME_1_LOW: u16;
const TIME_1_HIGH: u16;
}Expand description
Common trait for all different smart LED dependent timings.
All common smart LEDs are controlled by sending PWM-like pulses, in two different configurations for high and low. The required timings (and tolerances) can be found in the relevant datasheets.
Provided timings: Sk68xxTiming, Ws2812bTiming, Ws2811Timing, Ws2812Timing
Required Associated Constants§
Sourceconst TIME_0_LOW: u16
const TIME_0_LOW: u16
Low time for zero pulse, in nanoseconds.
Sourceconst TIME_0_HIGH: u16
const TIME_0_HIGH: u16
High time for zero pulse, in nanoseconds.
Sourceconst TIME_1_LOW: u16
const TIME_1_LOW: u16
Low time for one pulse, in nanoseconds.
Sourceconst TIME_1_HIGH: u16
const TIME_1_HIGH: u16
High time for one pulse, in nanoseconds.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.