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

◆ copy()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
template<typename PixelControllerT>
void PixelController< RGB_ORDER, LANES, MASK >::copy ( const PixelControllerT & other)
inline

Definition at line 140 of file pixel_controller.h.

140 {
141 FL_STATIC_ASSERT(int(kLanes) == int(PixelControllerT::kLanes), "PixelController lanes must match or mOffsets will be wrong");
142 FL_STATIC_ASSERT(int(kMask) == int(PixelControllerT::kMask), "PixelController mask must match or else one or the other controls different lanes");
143 d[0] = other.d[0];
144 d[1] = other.d[1];
145 d[2] = other.d[2];
146 e[0] = other.e[0];
147 e[1] = other.e[1];
148 e[2] = other.e[2];
149 mData = other.mData;
153 for(int i = 0; i < LANES; ++i) { mOffsets[i] = other.mOffsets[i]; }
154 }
#define FL_STATIC_ASSERT(...)
int mLenRemaining
counter for the number of LEDs left to process
fl::u8 e[3]
[DITHER] Max dither range per R,G,B channel (inversely proportional to brightness)
fl::u8 d[3]
[DITHER] Current dither offset per R,G,B channel (toggles via stepDithering)
int mOffsets[LANES]
the number of bytes to offset each lane from the starting pointer
ColorAdjustment mColorAdjustment
const fl::u8 * mData
pointer to the underlying LED data
int mLen
number of LEDs in the data for one lane
fl::i8 mAdvance
how many bytes to advance the pointer by each time. For CRGB this is 3.
Pixel controller class.

References d, e, FL_STATIC_ASSERT, kLanes, kMask, mAdvance, mColorAdjustment, mData, mLen, mLenRemaining, and mOffsets.

Referenced by PixelController(), and PixelController().

+ Here is the caller graph for this function: