Class BlingIOReal
java.lang.Object
frc.alotobots.library.subsystems.bling.io.BlingIOReal
- All Implemented Interfaces:
BlingIO
Hardware implementation of the BlingIO interface for controlling physical LED strips. Uses CTRE's
CANdle device for LED control.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.bling.io.BlingIO
BlingIO.BlingIOInputs, BlingIO.LoggedColor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the current animation, stopping any running patterns.void
Clears the current solid color, turning off all LEDs.void
setAnimation
(com.ctre.phoenix.led.Animation animation) Sets a new animation pattern for the LEDs.void
setSolidColor
(BlingIO.LoggedColor color) Sets the LEDs to display a solid color.void
updateInputs
(BlingIO.BlingIOInputs inputs) Updates the input values for logging and monitoring.
-
Constructor Details
-
BlingIOReal
public BlingIOReal()Constructs a new BlingIOReal instance. Initializes the CANdle controller with default settings.
-
-
Method Details
-
updateInputs
Description copied from interface:BlingIO
Updates the input values for logging and monitoring.- Specified by:
updateInputs
in interfaceBlingIO
- Parameters:
inputs
- The inputs object to update with current state
-
setAnimation
public void setAnimation(com.ctre.phoenix.led.Animation animation) Description copied from interface:BlingIO
Sets a new animation pattern for the LEDs.- Specified by:
setAnimation
in interfaceBlingIO
- Parameters:
animation
- The animation pattern to display
-
clearAnimation
public void clearAnimation()Description copied from interface:BlingIO
Clears the current animation, stopping any running patterns.- Specified by:
clearAnimation
in interfaceBlingIO
-
setSolidColor
Description copied from interface:BlingIO
Sets the LEDs to display a solid color.- Specified by:
setSolidColor
in interfaceBlingIO
- Parameters:
color
- The color to display
-
clearSolidColor
public void clearSolidColor()Description copied from interface:BlingIO
Clears the current solid color, turning off all LEDs.- Specified by:
clearSolidColor
in interfaceBlingIO
-