Blink1Device.writePatternLineRGB

Writes a pattern line to the device.

On MK1 devices this will store it in nonvolatile storage. On MK2 and later devices this will store it in RAM. Call savePattern to store it in nonvolatile storage.

class Blink1Device
@trusted
void
writePatternLineRGB
(
ubyte pos
,
ubyte r
,
ubyte g
,
ubyte b
,
Duration duration = seconds(01)
,)

Parameters

pos ubyte

The position to write to, starting from zero.

r ubyte

red component

g ubyte

green component

b ubyte

blue component

duration Duration

time it takes to fade

led LED

The LED to use.

Throws

Blink1Exception if an error occurs.

Meta