blink1_setRGB

Set blink1 immediately to a specific RGB color.

If mk2 or above, sets all LEDs immediately

extern (C)
int
blink1_setRGB
(,
ubyte r
,
ubyte g
,
ubyte b
)

Parameters

dev blink1_device*

blink1 device to command

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