Class PhysicalLEDRGB
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.LED
io.github.roboblazers7617.buttonbox.controls.LEDMulticolor
io.github.roboblazers7617.buttonbox.controls.PhysicalLEDRGB
An RGB LED that sends its RGB components to Addresses.
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalLEDRGB(String id, DoubleAddress redAddress, DoubleAddress greenAddress, DoubleAddress blueAddress) Creates a new PhysicalLEDRGB. -
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
-
PhysicalLEDRGB
public PhysicalLEDRGB(String id, DoubleAddress redAddress, DoubleAddress greenAddress, DoubleAddress blueAddress) Creates a new PhysicalLEDRGB.- Parameters:
id- The ID string for the LED to use.redAddress- The address to send the red component to.greenAddress- The address to send the green component to.blueAddress- The address to send the blue component 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
-