Package frc.robot.leds
Class LedRight
java.lang.Object
frc.spectrumLib.leds.SpectrumLEDs
frc.robot.leds.LedRight
- All Implemented Interfaces:
edu.wpi.first.wpilibj2.command.Subsystem
,SpectrumSubsystem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class frc.spectrumLib.leds.SpectrumLEDs
SpectrumLEDs.Config
-
Field Summary
FieldsFields inherited from class frc.spectrumLib.leds.SpectrumLEDs
defaultCommand, defaultPattern, defaultTrigger, led, ledBuffer, ledView, purple, white
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets up the default command for the LED subsystem.void
Binds the triggers for the LED commands.Methods inherited from class frc.spectrumLib.leds.SpectrumLEDs
blink, bounce, breathe, chase, checkPriority, countdown, edges, getCommandPriority, getConfig, getDefaultCommand, getLed, getLedBuffer, getLedView, gradient, isAttached, ombre, periodic, rainbow, rainbow, scroll, scrollingRainbow, setCommandPriority, setPattern, setPattern, solid, stripe, wave
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, getName, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
config
-
-
Constructor Details
-
LedRight
-
-
Method Details
-
setupStates
public void setupStates()Binds the triggers for the LED commands. This method overrides the bindTriggers method to ensure that the LED commands are properly bound to their respective triggers.- Specified by:
setupStates
in interfaceSpectrumSubsystem
- Overrides:
setupStates
in classSpectrumLEDs
-
setupDefaultCommand
public void setupDefaultCommand()Sets up the default command for the LED subsystem. This method is called to assign the default command that will run when no other commands are scheduled for the subsystem.- Specified by:
setupDefaultCommand
in interfaceSpectrumSubsystem
- Overrides:
setupDefaultCommand
in classSpectrumLEDs
-