FastLED 3.10.8
Loading...
Searching...
No Matches

◆ enable_rgbw_power_estimate()

void fl::detail::enable_rgbw_power_estimate ( )

Lets the power limiter charge a controller's RGBW conversion.

Called by CLEDController::applyRgbw – the one path in-tree that stores an Rgbw into a controller – and by Channel when its options carry one, so a sketch that never configures RGBW does not link the conversion into the limiter. Defined in power_mgt.cpp.hpp.

Definition at line 481 of file power_mgt.cpp.hpp.

481 {
483}
fl::u32 calculate_unscaled_power_mW(fl::span< const CRGB > leds) FL_NO_EXCEPT
Determines how many milliwatts the current LED data would draw at max brightness (255)
static rgbw_power_fn gRgbwPowerEstimate
fl::u32(* rgbw_power_fn)(fl::span< const CRGB >, const fl::Rgbw &)

References calculate_unscaled_power_mW(), fl::FL_NO_EXCEPT, and gRgbwPowerEstimate.

Referenced by fl::CLEDController::applyRgbw(), and fl::Channel::syncLegacySettings().

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