Represents a NeoPixel strand
More...
|
void | Free () |
| Free resources allocated by the firmware for this strand. After calling free, this object is no longer valid and should be discarded More...
|
|
void | Hold () |
| Enables strand holding. When enabled, the strand will not refresh with any LED changes until the hold is disabled.This allows you to form complex LED patterns without having the strand refresh with partial changes. More...
|
|
void | Release () |
| Disables strand holding. The strand will be refreshed with any LED changes programmed while the hold was active. More...
|
|
void | Clear (byte start, byte end) |
| Clears the LEDs in the given range More...
|
|
void | SetRgb (byte index, byte red, byte green, byte blue) |
| Set and LED's rgb values More...
|
|
void | Rotate (RotationDirection direction, ushort period, byte repetitions=0xff) |
| Rotate the LED color patterns on a strand More...
|
|
void | StopRotation () |
| Stops the LED rotation More...
|
|
|
int | NLeds [get] |
| Number of LEDs initialized for the strand More...
|
|
Represents a NeoPixel strand
◆ Clear()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.Clear |
( |
byte |
start, |
|
|
byte |
end |
|
) |
| |
Clears the LEDs in the given range
- Parameters
-
start | Led index to start clearing from |
end | Led index to clear to, exclusive |
◆ Free()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.Free |
( |
| ) |
|
Free resources allocated by the firmware for this strand. After calling free, this object is no longer valid and should be discarded
◆ Hold()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.Hold |
( |
| ) |
|
Enables strand holding. When enabled, the strand will not refresh with any LED changes until the hold is disabled.This allows you to form complex LED patterns without having the strand refresh with partial changes.
◆ Release()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.Release |
( |
| ) |
|
Disables strand holding. The strand will be refreshed with any LED changes programmed while the hold was active.
◆ Rotate()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.Rotate |
( |
RotationDirection |
direction, |
|
|
ushort |
period, |
|
|
byte |
repetitions = 0xff |
|
) |
| |
Rotate the LED color patterns on a strand
- Parameters
-
direction | Rotation direction |
period | Amount of time, in milliseconds (ms), between rotations |
repetitions | Number of times to repeat the rotation, defaults to indefinite |
◆ SetRgb()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.SetRgb |
( |
byte |
index, |
|
|
byte |
red, |
|
|
byte |
green, |
|
|
byte |
blue |
|
) |
| |
Set and LED's rgb values
- Parameters
-
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] |
◆ StopRotation()
void MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.StopRotation |
( |
| ) |
|
◆ NLeds
int MbientLab.MetaWear.Peripheral.NeoPixel.IStrand.NLeds |
|
get |
Number of LEDs initialized for the strand
The documentation for this interface was generated from the following file:
- MetaWear/Peripheral/INeoPixel.cs