blink1_readRGB

Read current RGB value on specified LED.

For mk2 devices or above.

extern (C)
int
blink1_readRGB
(,
ushort* fadeMillis
,
ubyte* r
,
ubyte* g
,
ubyte* b
,
ubyte ledn
)

Parameters

dev blink1_device*

blink1 device to command

r ubyte*

pointer to red part of RGB color

g ubyte*

pointer to green part of RGB color

b ubyte*

pointer to blue part of RGB color

Return Value

Type: int

-1 on error, 0 on success

Meta