47 CRGB(b0_hi, b0_lo, b1_hi),
48 CRGB(b1_lo, b2_hi, b2_lo)
60template <
typename InputIterator,
typename OutputIterator>
61void encodeWS2816(InputIterator first, InputIterator last, OutputIterator out) {
62 while (first != last) {
71 *out++ = packed.
first;
A fixed-size array implementation similar to std::array.
void encodeWS2816(InputIterator first, InputIterator last, OutputIterator out)
Encode 16-bit RGB pixel data into dual 8-bit RGB format for WS2816.
pair< typename fl::decay< T1 >::type, typename fl::decay< T2 >::type > make_pair(T1 &&t, T2 &&u) FL_NOEXCEPT
pair< CRGB, CRGB > packWS2816Pixel(u16 s0, u16 s1, u16 s2)
Pack a single 16-bit RGB pixel into two 8-bit CRGB pixels for WS2816.
Base definition for an LED controller.