FastLED 3.9.15
Loading...
Searching...
No Matches
PowerModelRGBWW Struct Reference

Detailed Description

RGBWW LED power consumption model (RGB + Cool White + Warm White)

Note
Future API enhancement - not yet implemented in power calculations
Currently forwards to PowerModelRGB, ignoring white channels

Definition at line 91 of file power_mgt.h.

#include <power_mgt.h>

Public Member Functions

constexpr PowerModelRGBWW ()
 Default constructor - Hypothetical RGBWW @ 5V estimate, linear response.
 
constexpr PowerModelRGBWW (fl::u8 r, fl::u8 g, fl::u8 b, fl::u8 w, fl::u8 ww, fl::u8 d, float e=1.0f)
 Custom RGBWW power model.
 
constexpr PowerModelRGB toRGB () const
 Convert to RGB model (folds W/WW power back into RGB so the brightness limiter doesn't under-budget).
 

Public Attributes

fl::u8 blue_mW
 Blue channel power at full brightness (255), in milliwatts.
 
fl::u8 dark_mW
 Dark LED baseline power consumption, in milliwatts.
 
float exponent
 Brightness-to-power response exponent (1.0 = linear)
 
fl::u8 green_mW
 Green channel power at full brightness (255), in milliwatts.
 
fl::u8 red_mW
 Red channel power at full brightness (255), in milliwatts.
 
fl::u8 warm_white_mW
 Warm white channel power at full brightness (255), in milliwatts.
 
fl::u8 white_mW
 Cool white channel power at full brightness (255), in milliwatts.
 

The documentation for this struct was generated from the following file: