Class BlingIOReal

java.lang.Object
frc.alotobots.library.subsystems.bling.io.BlingIOReal
All Implemented Interfaces:
BlingIO

public class BlingIOReal extends Object implements BlingIO
Hardware implementation of the BlingIO interface for controlling physical LED strips. Uses CTRE's CANdle device for LED control.
  • Constructor Details

    • BlingIOReal

      public BlingIOReal()
      Constructs a new BlingIOReal instance. Initializes the CANdle controller with default settings.
  • Method Details

    • updateInputs

      public void updateInputs(BlingIO.BlingIOInputs inputs)
      Description copied from interface: BlingIO
      Updates the input values for logging and monitoring.
      Specified by:
      updateInputs in interface BlingIO
      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 interface BlingIO
      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 interface BlingIO
    • setSolidColor

      public void setSolidColor(BlingIO.LoggedColor color)
      Description copied from interface: BlingIO
      Sets the LEDs to display a solid color.
      Specified by:
      setSolidColor in interface BlingIO
      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 interface BlingIO