Class PhysicalLED
java.lang.Object
io.github.roboblazers7617.buttonbox.Control
io.github.roboblazers7617.buttonbox.controls.LED
io.github.roboblazers7617.buttonbox.controls.PhysicalLED
A single color LED that sends its brightness to an Address.
-
Constructor Summary
ConstructorsConstructorDescriptionPhysicalLED(String id, DoubleAddress brightnessAddress) Creates a new PhysicalLED. -
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.LED
getBrightness, setBrightness, setupNetworkTables, setupSimulation, updateClient, updateServerMethods inherited from class io.github.roboblazers7617.buttonbox.Control
getId, getTable, setTable, updateOnClient
-
Constructor Details
-
PhysicalLED
Creates a new PhysicalLED.- Parameters:
id- The ID string for the LED to use.brightnessAddress- The address to send the brightness 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
-