FastLED 3.9.15
Loading...
Searching...
No Matches

Detailed Description

RGB LED power consumption model Used for standard 3-channel LEDs (WS2812, WS2812B, APA102, etc.)

The model carries the brightness-to-power response exponent alongside the per-channel draw so the scaling behavior travels with the model and can be set in a single set_power_model(...) call.

Examples
FastLED.setPowerModel.

Definition at line 27 of file power_mgt.h.

#include <power_mgt.h>

Public Member Functions

constexpr PowerModelRGB ()
 Default constructor - WS2812 @ 5V (16mA/11mA/15mA @ 5V), linear response.
 
constexpr PowerModelRGB (fl::u8 r, fl::u8 g, fl::u8 b, fl::u8 d, float e=1.0f)
 Custom RGB power model.
 

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.
 

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