Blink1Device.fadeToRGB

Fades the color to the specified value with the given duration.

class Blink1Device
@trusted
void
fadeToRGB
(
ubyte r
,
ubyte g
,
ubyte b
,
Duration dur = seconds(-1)
,)

Parameters

r ubyte

red component of color (0 <= r <= 255)

g ubyte

green component of color (0 <= g <= 255)

b ubyte

blue component of color (0 <= b <= 255)

dur Duration

duration of the fade animation. Maximum duration is 65,355 milliseconds. Defaults to defaultDuration

led LED

which LED to fade. Defaults to all LEDs

Throws

Blink1Exception on error.

See Also

Meta