FastLED 3.9.15
Loading...
Searching...
No Matches

◆ preStepFirstByteDithering()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
FASTLED_FORCE_INLINE void PixelController< RGB_ORDER, LANES, MASK >::preStepFirstByteDithering ( )
inline

Some chipsets pre-cycle the first byte, which means we want to cycle byte 0's dithering separately.

Definition at line 407 of file pixel_controller.h.

407 {
408 d[RO(0)] = e[RO(0)] - d[RO(0)];
409 }
#define RO(X)
Gets the assigned color channel for a byte's position in the output, using the color order (EOrder) t...
fl::u8 e[3]
[DITHER] Max dither range per R,G,B channel (inversely proportional to brightness)
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)

References d, e, FASTLED_FORCE_INLINE, and RO.