Interface BlingIO
- All Known Implementing Classes:
BlingIOReal
,BlingIOSim
public interface BlingIO
Interface for controlling LED lighting functionality on the robot. Provides methods for setting
animations, solid colors, and managing LED states.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Data structure for logging LED state information.static final record
Record class representing an RGB color value for LED control. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Clears the current animation, stopping any running patterns.default void
Clears the current solid color, turning off all LEDs.default void
setAnimation
(com.ctre.phoenix.led.Animation animation) Sets a new animation pattern for the LEDs.default void
setSolidColor
(BlingIO.LoggedColor color) Sets the LEDs to display a solid color.default void
updateInputs
(BlingIO.BlingIOInputs inputs) Updates the input values for logging and monitoring.
-
Method Details
-
updateInputs
Updates the input values for logging and monitoring.- Parameters:
inputs
- The inputs object to update with current state
-
setAnimation
default void setAnimation(com.ctre.phoenix.led.Animation animation) Sets a new animation pattern for the LEDs.- Parameters:
animation
- The animation pattern to display
-
clearAnimation
default void clearAnimation()Clears the current animation, stopping any running patterns. -
setSolidColor
Sets the LEDs to display a solid color.- Parameters:
color
- The color to display
-
clearSolidColor
default void clearSolidColor()Clears the current solid color, turning off all LEDs.
-