Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update build-CI, badges and new functions #3

Merged
merged 16 commits into from
Nov 6, 2021
Prev Previous commit
Next Next commit
fix
  • Loading branch information
RobTillaart committed Nov 6, 2021
commit 8082b64ad270d86e62d4c75c304d340eb95f3bca
4 changes: 3 additions & 1 deletion Kelvin2RGB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void Kelvin2RGB::convert_NB(float temperature, float brightness)
}


void Kelvin2RGB::setRGB(float red, float green, float blue, float brightness)
uint32_t Kelvin2RGB::setRGB(float red, float green, float blue, float brightness)
{
_brightness = brightness;
_red = red * 255;
Expand Down Expand Up @@ -148,6 +148,8 @@ uint32_t Kelvin2RGB::BGR()
//
// private
//

// expects _red, _green, _blue in the 0..255 range.
void Kelvin2RGB::_normalize()
{
float f = 0.01 * _brightness;
Expand Down