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

◆ ensureBuffer()

template<fl::u8 DATA_PIN, EOrder RGB_ORDER = GRB>
void WS2816Controller< DATA_PIN, RGB_ORDER >::ensureBuffer ( int size_8bit)
inlineprivate

Definition at line 1221 of file chipsets.h.

1221 {
1222 int size_16bit = 2 * size_8bit;
1223 if (mController.size() != size_16bit) {
1224 delete [] mData;
1225 CRGB *new_leds = new CRGB[size_16bit];
1226 mData = new_leds;
1228 }
1229 }

References mController, and mData.

Referenced by showPixels().

+ Here is the caller graph for this function: