public static interface NeoPixel.Strand
| Modifier and Type | Interface and Description |
|---|---|
static class |
NeoPixel.Strand.RotationDirection
Enumeration of rotation directions
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(byte start,
byte end)
Clears the LEDs in the given range
|
void |
free()
Free resources allocated by the firmware for this strand.
|
void |
hold()
Enables strand holding.
|
int |
nLeds()
Return the number of Leds initialized for the strand
|
void |
release()
Disables strand holding.
|
void |
rotate(NeoPixel.Strand.RotationDirection direction,
byte repetitions,
short period)
Rotate the LED color patterns on a strand
|
void |
rotate(NeoPixel.Strand.RotationDirection direction,
short period)
Rotate the LED color patterns on a strand indefinitely
|
void |
setRgb(byte index,
byte red,
byte green,
byte blue)
Set and LED's rgb values
|
void |
stopRotation()
Stops the LED rotation
|
void free()
void hold()
void release()
void clear(byte start,
byte end)
start - Led index to start clearing fromend - Led index to clear to, exclusivevoid setRgb(byte index,
byte red,
byte green,
byte blue)
index - LED index to set, from [0, nLeds - 1]red - Red value, between [0, 255]green - Green value, between [0, 255]blue - Blue value, between [0, 255]void rotate(NeoPixel.Strand.RotationDirection direction, byte repetitions, short period)
direction - Rotation directionrepetitions - Number of times to repeat the rotationperiod - Amount of time, in milliseconds, between rotationsvoid rotate(NeoPixel.Strand.RotationDirection direction, short period)
direction - Rotation directionperiod - Amount of time, in milliseconds, between rotationsvoid stopRotation()
int nLeds()