Package | Description |
---|---|
org.chabala.brick.controllab |
Library for controlling the LEGO® control lab interface.
|
Modifier and Type | Field and Description |
---|---|
static Set<OutputId> |
OutputId.ALL
Convenience constant for specifying all output ports.
|
Modifier and Type | Method and Description |
---|---|
static OutputId |
OutputId.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutputId[] |
OutputId.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Set<OutputId> |
OutputId.decodeByteToSet(byte b)
|
Set<OutputId> |
Output.getOutputIdSet()
|
Modifier and Type | Method and Description |
---|---|
Output |
ControlLab.getOutput(OutputId outputId)
Return a handle for the output specified on this control lab instance.
|
Modifier and Type | Method and Description |
---|---|
Output |
ControlLab.getOutput(Set<OutputId> outputs)
Return a handle for multiple outputs on this control lab instance.
|
void |
ControlLab.setOutputDirection(Direction direction,
Set<OutputId> outputs)
Sets the
Direction of the specified outputs. |
void |
ControlLab.setOutputPowerLevel(PowerLevel powerLevel,
Set<OutputId> outputs)
Sets the
PowerLevel of the specified outputs. |
void |
ControlLab.turnOutputOff(Set<OutputId> outputs)
Stops sending power to the specified outputs.
|
void |
ControlLab.turnOutputOn(Set<OutputId> outputs)
Starts sending power to the specified outputs.
|
Copyright © 2016–2023. All rights reserved.