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

◆ PixelController() [3/5]

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
PixelController< RGB_ORDER, LANES, MASK >::PixelController ( const uint8_t * d,
int len,
ColorAdjustment color_adjustment,
EDitherMode dither,
bool advance,
uint8_t 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 142 of file pixel_controller.h.

147 mData += skip;
148 mAdvance = (advance) ? 3+skip : 0;
150 }
int8_t mAdvance
how many bytes to advance the pointer by each time. For CRGB this is 3.
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.
const uint8_t * mData
pointer to the underlying LED data
uint8_t d[3]
values for the scaled dither signal
ColorAdjustment mColorAdjustment
int mLen
number of LEDs in the data for one lane
static FASTLED_FORCE_INLINE uint8_t dither(PixelController &pc, uint8_t b)
Calculate a dither value using the per-channel dither data.
void enable_dithering(EDitherMode dither)
Toggle dithering enable If dithering is set to enabled, this will re-init the dithering values (init_...
Pixel controller class.

References d, dither(), EDitherMode, enable_dithering(), initOffsets(), mAdvance, mColorAdjustment, mData, mLen, and mLenRemaining.

+ Here is the call graph for this function: