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
Nested ClassesModifier 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
clearSolidColor
(int from, int to) 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, int from, int to) 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(int from, int to) Clears the current solid color, turning off all LEDs.
-