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

Method BGR

libraries/Kelvin2RGB/Kelvin2RGB.cpp:197–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195
196
197uint32_t Kelvin2RGB::BGR()
198{
199 return uint8_t(255 * _blue + 0.5) * 65536UL + uint8_t(255 * _green + 0.5) * 256UL + uint8_t(255 * _red + 0.5);
200 // return round(255 * 65536UL * _blue) + round(255 * 256UL * _green) + round(255 * _red);
201}
202
203
204/////////////////////////////////////////////////////////////

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64