Class PhysicalLEDRGBLaunchpad
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.LED
io.github.roboblazers7617.buttonbox.controls.LEDMulticolor
io.github.roboblazers7617.buttonbox.midi.controls.PhysicalLEDRGBLaunchpad
An RGB LED that sends its RGB components to an address, encoded into the Novation Launchpad's
SYSEX data format.
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalLEDRGBLaunchpad(String id, byte index, MIDIDevice device) Creates a new PhysicalLEDRGBLaunchpad. -
Method Summary
Modifier and TypeMethodDescriptionvoidInterfaces with the buttonbox hardware and updates the state of the physical control.Methods inherited from class io.github.roboblazers7617.buttonbox.controls.LEDMulticolor
getColor, setColor, setColor, setupNetworkTables, updateClientMethods inherited from class io.github.roboblazers7617.buttonbox.controls.LED
getBrightness, setBrightness, setupSimulation, updateServerMethods inherited from class io.github.roboblazers7617.buttonbox.Control
getId, getTable, setTable, updateOnClient
-
Constructor Details
-
PhysicalLEDRGBLaunchpad
Creates a new PhysicalLEDRGBLaunchpad.- Parameters:
id- The ID string for the LED to use.index- The index of the LED to control.device- The device to send SYSEX data to.
-
-
Method Details
-
updateHardware
public void updateHardware()Description copied from class:ControlInterfaces with the buttonbox hardware and updates the state of the physical control. Called afterControl.updateClient().This doesn't do anything by default, and should be overridden by the class inheritting this.
- Overrides:
updateHardwarein classControl
-