public static enum NeoPixel.Register extends java.lang.Enum<NeoPixel.Register> implements Register
Enum Constant and Description |
---|
CLEAR
Clears pixels on a strand
|
DEINITIALIZE
Frees up resources allocated for a strand
|
HOLD
Sets and retrieves a strand's hold state
|
INITIALIZE
Initializes a strand and retrieves information about a strand
|
PIXEL
Sets or retrieves pixel color on a strand
|
ROTATE
Sets or retrieves rotation state
|
Modifier and Type | Method and Description |
---|---|
Module |
module()
Get the module the register belongs to
|
void |
notifyCallbacks(java.util.Collection<MetaWearController.ModuleCallbacks> callbacks,
byte[] data)
Trigger the appropriate callback when a read or value change occurs on
the register
|
static NeoPixel.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NeoPixel.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NeoPixel.Register INITIALIZE
public static final NeoPixel.Register HOLD
public static final NeoPixel.Register CLEAR
public static final NeoPixel.Register PIXEL
public static final NeoPixel.Register ROTATE
public static final NeoPixel.Register DEINITIALIZE
public static NeoPixel.Register[] values()
for (NeoPixel.Register c : NeoPixel.Register.values()) System.out.println(c);
public static NeoPixel.Register valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic Module module()
Register
public void notifyCallbacks(java.util.Collection<MetaWearController.ModuleCallbacks> callbacks, byte[] data)
Register
notifyCallbacks
in interface Register
callbacks
- Callbacks to triggerdata
- Data received from the register