Encode pixel data in WS2801/WS2803 format using PixelIterator.
- Deprecated
- Use the input iterator version in ws2801.h instead: auto pixel_range = makeScaledPixelRangeRGB(&pixelIterator); auto out = fl::back_inserter(buffer); encodeWS2801(pixel_range.first, pixel_range.second, out);
- Template Parameters
-
| InputIterator | Iterator yielding fl::array<u8, 3> (RGB bytes) |
| OutputIterator | Output iterator accepting uint8_t |
- Parameters
-
| first | Iterator to first pixel |
| last | Iterator past last pixel |
| out | Output iterator for encoded bytes |
- Note
- This is now just a thin wrapper around the modern iterator version
- Examples
- /home/runner/work/FastLED/FastLED/src/fl/chipsets/encoders/output_sink.h.
Definition at line 36 of file ws2801_encoder_impl.h.
36 {
37
38
39 while (first != last) {
40 const array<u8, 3>& pixel = *first;
41 *out++ = pixel[0];
42 *out++ = pixel[1];
43 *out++ = pixel[2];
44 ++first;
45 }
46
47}