MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setRGB

Method setRGB

libraries/Kelvin2RGB/Kelvin2RGB.cpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143uint32_t Kelvin2RGB::setRGB(float red, float green, float blue, float brightness)
144{
145 _brightness = brightness;
146 _red = red * 255;
147 _green = green * 255;
148 _blue = blue * 255;
149 _normalize();
150 return _rgb;
151}
152
153
154//

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64