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 1216 of file chipsets.h.

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

References mController, and mData.

Referenced by showPixels().

+ Here is the caller graph for this function: