FastLED 3.10.6
Loading...
Searching...
No Matches

◆ loadAndScaleRGBWWUnordered()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
FASTLED_FORCE_INLINE void PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGBWWUnordered ( fl::Rgbww rgbww,
fl::u8 * r_out,
fl::u8 * g_out,
fl::u8 * b_out,
fl::u8 * ww_out,
fl::u8 * wc_out )
inline

loadAndScaleRGBWW before its wire reorder. See loadAndScaleRGBWUnordered.

Definition at line 537 of file pixel_controller.h.

539 {
540#ifdef FL_IS_AVR
542 FL_WARN_ONCE("RGBWW colorimetric is not supported on AVR -- the warm "
543 "and cool white channels will be black. Use an ESP32 / "
544 "Teensy / RP2040 target for full RGBWW support.");
548 *ww_out = 0;
549 *wc_out = 0;
550#else
551 const CRGB rgb(mData[0], mData[1], mData[2]);
552 *ww_out = 0;
553 *wc_out = 0;
555 rgb.r, rgb.g, rgb.b,
556 mColorAdjustment.premixed.r,
557 mColorAdjustment.premixed.g,
558 mColorAdjustment.premixed.b,
560#endif
561 }
#define FL_UNUSED(x)
#define FL_WARN_ONCE(...)
Definition log.h:442
FASTLED_FORCE_INLINE void rgb_2_rgbww(const Rgbww &cfg, fl::u8 r, fl::u8 g, fl::u8 b, fl::u8 r_scale, fl::u8 g_scale, fl::u8 b_scale, fl::u8 *out_r, fl::u8 *out_g, fl::u8 *out_b, fl::u8 *out_ww, fl::u8 *out_wc) FL_NO_EXCEPT
Definition rgbww.h:173
ColorAdjustment mColorAdjustment
const fl::u8 * mData
pointer to the underlying LED data
FASTLED_FORCE_INLINE fl::u8 loadAndScaleChannel(fl::u8 c)
One source channel, loaded, dithered and scaled – loadAndScale<SLOT> with RO(SLOT) replaced by a runt...
Pixel controller class.

References FASTLED_FORCE_INLINE, FL_UNUSED, FL_WARN_ONCE, loadAndScaleChannel(), mColorAdjustment, mData, and fl::rgb_2_rgbww().

Referenced by loadAndScaleRGBWW().

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