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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all LED effects, turning off animations and solid colors.void
periodic()
void
setAnimation
(com.ctre.phoenix.led.Animation animation) Sets the LEDs to display an animation pattern.void
setSolidColor
(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, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-