21 FASTLED_ASSERT(
false,
"Pin not found in RectangularDrawBuffer");
26 memset(slice.
data(), 0, slice.
size() *
sizeof(slice[0]));
57 uint32_t total_bytes = 0;
58 uint32_t max_bytes_in_strip = 0;
59 uint32_t num_strips = 0;
60 getBlockInfo(&num_strips, &max_bytes_in_strip, &total_bytes);
70 uint8_t pin = it->mPin;
74 offset += max_bytes_in_strip;
80 uint32_t max_bytes = 0;
82 max_bytes =
MAX(max_bytes, it->mNumBytes);
90 return num_strips * max_bytes;
94 uint32_t *bytes_per_strip,
95 uint32_t *total_bytes)
const {
98 *total_bytes = (*num_strips) * (*bytes_per_strip);
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
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
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)