FastLED 3.10.8
Loading...
Searching...
No Matches
LED Power Consumption Models

Detailed Description

Configurable power consumption models for different LED types.

+ Collaboration diagram for LED Power Consumption Models:

Classes

struct  PowerModelRGB
 RGB LED power consumption model Used for standard 3-channel LEDs (WS2812, WS2812B, APA102, etc.) More...
 
struct  PowerModelRGBW
 RGBW LED power consumption model Used for 4-channel LEDs (SK6812 RGBW and similar). More...
 
struct  PowerModelRGBWW
 RGBWW LED power consumption model (RGB + warm white + cool white). More...
 

Functions

fl::u32 calculate_unscaled_emitter_power_mW (fl::span< const fl::u8 > codes, fl::u8 emitter_count) FL_NO_EXCEPT
 Charge already-solved physical output bytes in source emitter order: RGB, RGBW, or RGB + warm white + cool white.
 
PowerModelRGB get_power_model () FL_NO_EXCEPT
 Get current RGB power model.
 
float get_power_scaling_exponent () FL_NO_EXCEPT
 Get the current brightness-to-power response exponent.
 
fl::u8 get_white_emitter_mW () FL_NO_EXCEPT
 The white-emitter draw the caller declared, or zero if they declared only an RGB model.
 
void set_power_model (const PowerModelRGB &model) FL_NO_EXCEPT
 Set custom RGB LED power consumption model.
 
void set_power_model (const PowerModelRGBW &model) FL_NO_EXCEPT
 Set custom RGBW LED power consumption model.
 
void set_power_model (const PowerModelRGBWW &model) FL_NO_EXCEPT
 Set custom RGBWW LED power consumption model.
 
void set_power_scaling_exponent (float exponent) FL_NO_EXCEPT
 Set a non-linear brightness-to-power response exponent.