FastLED 3.9.15
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 188 of file pixel_controller.h.

193 mAdvance = 3;
195 }
int mLenRemaining
counter for the number of LEDs left to process
void initOffsets(int len)
Initialize the PixelController::mOffsets array based on the length of the strip.
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)
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)
Toggle dithering enable/disable.
static FASTLED_FORCE_INLINE fl::u8 dither(PixelController &pc, fl::u8 b)
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(), initOffsets(), mAdvance, mColorAdjustment, mData, mLen, and mLenRemaining.

+ Here is the call graph for this function: