public class ControllerRegister
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
CONTROL_STATIC |
Modifier and Type | Method and Description |
---|---|
static Controller |
getController(LEDStrip strip,
int id)
Gets an instance of a controller with the given ID for a specific LED
strip.
|
static java.lang.String[] |
getControllerNames()
Creates a array of strings containing the names of all registered
controllers.
|
static int |
getID(java.lang.String controller)
Gets the ID of the controller type with the given class name.
|
static int |
register(java.lang.String controller)
Registers a new strip controller.
|
public static final byte CONTROL_STATIC
public static int register(java.lang.String controller)
controller
- The full class name of the controller including the package.public static Controller getController(LEDStrip strip, int id)
strip
- The strip for which the controller instance is.id
- The ID of the controller.public static int getID(java.lang.String controller)
controller
- The name of the controller including package name.public static java.lang.String[] getControllerNames()