public interface NeoPixel extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static class |
NeoPixel.ColorOrdering
Color ordering for the NeoPixel color values
|
static interface |
NeoPixel.Strand
Represents a NeoPixel strand
|
static class |
NeoPixel.StrandSpeed
Operating speeds for a NeoPixel strand
|
Modifier and Type | Method and Description |
---|---|
NeoPixel.Strand |
initializeStrand(byte strand,
NeoPixel.ColorOrdering ordering,
NeoPixel.StrandSpeed speed,
byte gpioPin,
byte length)
Initialize memory on the MetaWear board for a NeoPixel strand
|
NeoPixel.Strand |
lookupStrand(byte strand)
Find the object corresponding to the strand number
|
NeoPixel.Strand initializeStrand(byte strand, NeoPixel.ColorOrdering ordering, NeoPixel.StrandSpeed speed, byte gpioPin, byte length)
strand
- Strand number (id) to initialize, can be in the range [0, 2]ordering
- Color ordering formatspeed
- Operating speedgpioPin
- GPIO pin the strand is connected tolength
- Number of LEDs to useNeoPixel.Strand lookupStrand(byte strand)
strand
- Strand number to look up