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

◆ PixelController() [5/5]

template<EOrder RGB_ORDER, int LANES = 1, uint32_t 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 171 of file pixel_controller.h.

175 mAdvance = 0;
177 }
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: