set Custom Led Color With Animation
abstract fun setCustomLedColorWithAnimation(rgb: Int, animation: LightAnimation): Boolean
Content copied to clipboard
Overrides the default LED light behavior, instructing the controller to illuminate its LEDs using a specified 24-bit RGB color and animation pattern. The LEDs will continue displaying the set color and animation until they are either altered using setLedColorWithAnimation() or reverted to default behavior with resetLedState().
Return
true if the operation was successful and the LED color and animation were set, false otherwise.
Parameters
rgb
The color represented as 24-bit RGB value to which the LED lights should be set.
animation
The Animation instance defining the style and parameters of the LED animation.