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

◆ PixelController() [3/5]

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

Constructor.

Parameters
dpointer to LED data
lenlength of the LED data
color_adjustmentLED scale values
ditherdither setting for the LEDs
advancewhether the pointer (d) should advance per LED
skipif the pointer is advancing, how many bytes to skip in addition to 3

Definition at line 190 of file pixel_controller.h.

195 mData += skip;
196 mAdvance = (advance) ? 3+skip : 0;
198 }
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(), mAdvance, and mData.

+ Here is the call graph for this function: