Remember lastColor and last Bri for Solid RGBW (#743)
This commit is contained in:
parent
79da716a44
commit
f28502514f
@ -863,7 +863,9 @@ void WS2812FX::setRgbwPwm(void) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255);
|
bus->SetRgbwPwm(color.R * b / 255, color.G * b / 255, color.B * b / 255, color.W * b / 255);
|
||||||
#endif
|
#endif
|
||||||
|
_analogLastColor = color;
|
||||||
|
_analogLastBri = b;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void WS2812FX::setRgbwPwm() {}
|
void WS2812FX::setRgbwPwm() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user