25 memset(slice.
data(), 0, slice.
size() *
sizeof(slice[0]));
56 uint32_t total_bytes = 0;
57 uint32_t max_bytes_in_strip = 0;
58 uint32_t num_strips = 0;
59 getBlockInfo(&num_strips, &max_bytes_in_strip, &total_bytes);
69 uint8_t pin = it->mPin;
73 offset += max_bytes_in_strip;
79 uint32_t max_bytes = 0;
81 max_bytes =
MAX(max_bytes, it->mNumBytes);
89 return num_strips * max_bytes;
93 uint32_t *bytes_per_strip,
94 uint32_t *total_bytes)
const {
97 *total_bytes = (*num_strips) * (*bytes_per_strip);
#define FASTLED_ASSERT(x, MSG)
static T * Alloc(size_t n)
void getBlockInfo(uint32_t *num_strips, uint32_t *bytes_per_strip, uint32_t *total_bytes) const
bool mDrawListChangedThisFrame
uint32_t getMaxBytesInStrip() const
fl::Slice< uint8_t > getLedsBufferBytesForPin(uint8_t pin, bool clear_first=true)
fl::FixedMap< uint8_t, fl::Slice< uint8_t >, 50 > mPinToLedSegment
void queue(const DrawItem &item)
uint32_t getTotalBytes() const
uint32_t mAllLedsBufferUint8Size
scoped_array< uint8_t > mAllLedsBufferUint8
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.
Functions for red, green, blue, white (RGBW) output.
static uint32_t size_as_rgb(uint32_t num_of_rgbw_pixels)