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