blink1_readRGB_mk1

Attempt to read current RGB value for mk1 devices.

Called by blink1_setRGB() if device is mk1. Does not always work.

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

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