FastLED 3.10.6
Loading...
Searching...
No Matches

◆ calculateUartBufferSizeForLeds()

FASTLED_FORCE_INLINE constexpr size_t fl::calculateUartBufferSizeForLeds ( size_t num_leds)
constexpr

Calculate required output buffer size for RGB LED encoding.

Parameters
num_ledsNumber of RGB LEDs
Returns
Required output buffer size in bytes

Definition at line 239 of file uart_wave_encoder.h.

239 {
240 return num_leds * 3 * 4; // 12 bytes per RGB LED
241}

References FL_NO_EXCEPT.