21 FASTLED_ASSERT(
false,
"Pin not found in RectangularDrawBuffer");
26 memset(slice.
data(), 0, slice.
size() *
sizeof(slice[0]));
58 u32 max_bytes_in_strip = 0;
60 getBlockInfo(&num_strips, &max_bytes_in_strip, &total_bytes);
74 offset += max_bytes_in_strip;
82 max_bytes =
MAX(max_bytes, it->mNumBytes);
90 return num_strips * max_bytes;
95 u32 *total_bytes)
const {
98 *total_bytes = (*num_strips) * (*bytes_per_strip);
static T * Alloc(fl::size n)
u32 getMaxBytesInStrip() const
scoped_array< u8 > mAllLedsBufferUint8
fl::span< u8 > getLedsBufferBytesForPin(u8 pin, bool clear_first=true)
bool mDrawListChangedThisFrame
fl::FixedMap< u8, fl::span< u8 >, 50 > mPinToLedSegment
void getBlockInfo(u32 *num_strips, u32 *bytes_per_strip, u32 *total_bytes) const
u32 mAllLedsBufferUint8Size
void queue(const DrawItem &item)
u32 getTotalBytes() const
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
Functions for red, green, blue, white (RGBW) output.
Implements the FastLED namespace macros.
static uint32_t size_as_rgb(uint32_t num_of_rgbw_pixels)