blink1_fadeToRGB

Fade blink1 to given RGB color over specified time.

extern (C)
int
blink1_fadeToRGB
(,
ushort fadeMillis
,
ubyte r
,
ubyte g
,
ubyte b
)

Parameters

dev blink1_device*

blink1 device to command

fadeMillis ushort

time to fade in milliseconds

r ubyte

red part of RGB color

g ubyte

green part of RGB color

b ubyte

blue part of RGB color

Return Value

Type: int

-1 on error, 0 on success

Meta