Package frc.robot.subsystems.leds
Class Leds
java.lang.Object
frc.spectrumLib.leds.SpectrumLEDs
frc.robot.subsystems.leds.Leds
- All Implemented Interfaces:
Subsystem
LED strip for the robot. Extends
SpectrumLEDs for the pattern library and the CANdle
hardware. Bind the pattern methods from Robot.java or SuperStructure.-
Nested Class Summary
Nested classes/interfaces inherited from class frc.spectrumLib.leds.SpectrumLEDs
SpectrumLEDs.CANdlePattern, SpectrumLEDs.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpectrumLEDs.ConfigStatic hardware config, already set to address the external strip only.static final intLength of the external LED strip, which the CANdle addresses from index 8.Fields inherited from class frc.spectrumLib.leds.SpectrumLEDs
candle, defaultCommand, defaultPattern, defaultTrigger, purple, white -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class frc.spectrumLib.leds.SpectrumLEDs
blink, bounce, breathe, chase, checkPriority, countdown, edges, fire, getCandle, getCommandPriority, getConfig, getCurrentCommandName, gradient, isAnimating, isAttached, ombre, rainbow, rainbow, rgbCycle, scrollingRainbow, setCommandPriority, setPattern, setPattern, solid, stripe, switchCountdown, waveMethods 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, getName, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
NUM_LEDS
public static final int NUM_LEDSLength of the external LED strip, which the CANdle addresses from index 8.- See Also:
-
ledsConfig
Static hardware config, already set to address the external strip only. Set startIdx to 0 to span the onboard LEDs as well.
-
-
Constructor Details
-
Leds
public Leds()
-
-
Method Details
-
periodic
public void periodic()
-