blink1_writePatternLine

Write a color pattern line to blink1.

On mk1 devices, this saves the pattern line to nonvolatile storage. On mk2 devices and above, this only saves to RAM (see savePattern() for nonvol).

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

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

pos ubyte

pattern line number 0-max_patt (FIXME: put note about this)

Return Value

Type: int

-1 on error, 0 on success

Meta