FastLED 3.9.15
Loading...
Searching...
No Matches

◆ writeWS2801()

template<typename CONTAINER_UIN8_T>
void fl::PixelIterator::writeWS2801 ( CONTAINER_UIN8_T * out)
inline

Encode pixels in WS2801 format (zero allocation)

Parameters
outOutput buffer to write encoded bytes
Note
Protocol: Simple RGB bytes, no frame overhead
Uses unified encoder: src/fl/chipsets/encoders/ws2801.h

Definition at line 290 of file pixel_iterator.h.

290 {
291 auto back_ins = fl::back_inserter(*out);
292 auto pixel_range = makeScaledPixelRangeRGB(this);
293 encodeWS2801(pixel_range.first, pixel_range.second, back_ins);
294 }
pair< detail::ScaledPixelIteratorRGB, detail::ScaledPixelIteratorRGB > makeScaledPixelRangeRGB(PixelIterator *pixels) FL_NOEXCEPT
Create RGB input iterator range from PixelIterator.
void encodeWS2801(InputIterator first, InputIterator last, OutputIterator out) FL_NOEXCEPT
Encode pixel data in WS2801/WS2803 format.
Definition ws2801.h:41
back_insert_iterator< Container > back_inserter(Container &c) FL_NOEXCEPT
Helper function to create a back_insert_iterator.
Definition iterator.h:139

References fl::back_inserter(), fl::encodeWS2801(), FL_NOEXCEPT, and fl::makeScaledPixelRangeRGB().

Referenced by fl::Channel::showPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: