MCPcopy Create free account
hub / github.com/FastLED/FastLED / toRGB

Method toRGB

src/power_mgt.h:83–85  ·  view source on GitHub ↗

Convert to RGB model (extracts RGB components, preserves exponent) @note Used internally until RGBW power calculations are implemented

Source from the content-addressed store, hash-verified

81 /// Convert to RGB model (extracts RGB components, preserves exponent)
82 /// @note Used internally until RGBW power calculations are implemented
83 constexpr PowerModelRGB toRGB() const {
84 return PowerModelRGB(red_mW, green_mW, blue_mW, dark_mW, exponent);
85 }
86};
87
88/// RGBWW LED power consumption model (RGB + Cool White + Warm White)

Callers 2

set_power_modelFunction · 0.45
FL_TEST_FILEFunction · 0.45

Calls 1

PowerModelRGBClass · 0.85

Tested by

no test coverage detected