FastLED 3.10.8
Loading...
Searching...
No Matches

◆ PixelController() [4/5]

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
PixelController< RGB_ORDER, LANES, MASK >::PixelController ( const CRGB * d,
int len,
ColorAdjustment color_adjustment,
EDitherMode dither )
inline

Constructor.

Parameters
dpointer to LED data
lenlength of the LED data
color_adjustmentLED scale values
ditherdither setting for the LEDs

Definition at line 205 of file pixel_controller.h.

210 mAdvance = 3;
212 }
int mLenRemaining
counter for the number of LEDs left to process
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)
void initOffsets(int len) FL_NO_EXCEPT
Initialize the PixelController::mOffsets array based on the length of the strip.
ColorAdjustment mColorAdjustment
const fl::u8 * mData
pointer to the underlying LED data
int mLen
number of LEDs in the data for one lane
void enable_dithering(EDitherMode dither) FL_NO_EXCEPT
Toggle dithering enable/disable.
static FASTLED_FORCE_INLINE fl::u8 dither(PixelController &pc, fl::u8 b) FL_NO_EXCEPT
Add dither offset to pixel value (BEFORE scaling).
fl::i8 mAdvance
how many bytes to advance the pointer by each time. For CRGB this is 3.
Pixel controller class.

References d, dither(), enable_dithering(), FL_NO_EXCEPT, initOffsets(), and mAdvance.

+ Here is the call graph for this function: