22 FASTLED_ASSERT(
false,
"Pin not found in RectangularDrawBuffer");
59 u32 max_bytes_in_strip = 0;
61 getBlockInfo(&num_strips, &max_bytes_in_strip, &total_bytes);
75 offset += max_bytes_in_strip;
83 max_bytes =
fl::max(max_bytes, it->mNumBytes);
91 return num_strips * max_bytes;
96 u32 *total_bytes)
const {
99 *total_bytes = (*num_strips) * (*bytes_per_strip);
static void Free(T *p) FL_NOEXCEPT
static T * Alloc(fl::size n) FL_NOEXCEPT
u32 getMaxBytesInStrip() const
fl::flat_map< u8, fl::span< u8 > > mPinToLedSegment
fl::span< u8 > getLedsBufferBytesForPin(u8 pin, bool clear_first=true)
bool mDrawListChangedThisFrame
unique_ptr< u8[], PSRamDeleter< u8 > > mAllLedsBufferUint8
void getBlockInfo(u32 *num_strips, u32 *bytes_per_strip, u32 *total_bytes) const
u32 mAllLedsBufferUint8Size
void queue(const DrawItem &item)
u32 getTotalBytes() const
const T * data() const FL_NOEXCEPT
constexpr fl::size size() const FL_NOEXCEPT
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
Functions for red, green, blue, white (RGBW) output.
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
void * memset(void *s, int c, size_t n) FL_NOEXCEPT
Base definition for an LED controller.
DrawItem() FL_NOEXCEPT=default
static u32 size_as_rgb(u32 num_of_rgbw_pixels) FL_NOEXCEPT