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

◆ ensureBuffer()

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

Definition at line 1214 of file chipsets.h.

1214 {
1215 int size_16bit = 2 * size_8bit;
1216 if (mController.size() != size_16bit) {
1217 delete [] mData;
1218 CRGB *new_leds = new CRGB[size_16bit];
1219 mData = new_leds;
1221 }
1222 }

References mController, and mData.

Referenced by showPixels().

+ Here is the caller graph for this function: