blink1_fadeToRGBN

Fade specific LED on blink1mk2 to given RGB color over specified time.

For mk2 devices and above..

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

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

n ubyte

which LED to address (0=all, 1=1st LED, 2=2nd LED)

Return Value

Type: int

-1 on error, 0 on success

Meta