Class BlingSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.alotobots.library.subsystems.bling.BlingSubsystem
Subsystem for controlling robot LED lighting effects. Manages LED animations and solid colors for
visual feedback.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all LED effects, turning off animations and solid colors.voidperiodic()voidsetAnimation(com.ctre.phoenix.led.Animation animation) Sets the LEDs to display an animation pattern.voidsetSolidColor(BlingIO.LoggedColor color) Sets the LEDs to display a solid color.Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
BlingSubsystem
Creates a new BlingSubsystem.- Parameters:
io- The BlingIO implementation to use for LED control
-
-
Method Details
-
periodic
public void periodic() -
setSolidColor
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.
-