Class BlingSubsystem

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.alotobots.library.subsystems.bling.BlingSubsystem
All Implemented Interfaces:
Sendable, Subsystem

public class BlingSubsystem extends SubsystemBase
Subsystem for controlling robot LED lighting effects. Manages LED animations and solid colors for visual feedback.
  • Constructor Details

    • BlingSubsystem

      public BlingSubsystem(BlingIO io)
      Creates a new BlingSubsystem.
      Parameters:
      io - The BlingIO implementation to use for LED control
  • Method Details

    • periodic

      public void periodic()
    • setSolidColor

      public void setSolidColor(BlingIO.LoggedColor color)
      Sets the LEDs to display a solid color.
      Parameters:
      color - The color to display
    • setAnimation

      public void setAnimation(com.ctre.phoenix.led.Animation animation)
      Sets the LEDs to display an animation pattern.
      Parameters:
      animation - The animation pattern to display
    • clear

      public void clear()
      Clears all LED effects, turning off animations and solid colors.