Package frc.robot.commands
Class FlashingLEDColor
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.FlashingLEDColor
- All Implemented Interfaces:
Sendable
Command to flash LEDs on and off once per second.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionFlashingLEDColor
(LEDs leds, Color color) Command to flash the LED strip between a color and blackFlashingLEDColor
(LEDs leds, Color color, Color altColor) Command to flash the LED strip between 2 colors -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, end, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
FlashingLEDColor
Command to flash the LED strip between 2 colors- Parameters:
leds
- LED Subsystemcolor
- The first coloraltColor
- The second color
-
FlashingLEDColor
Command to flash the LED strip between a color and black- Parameters:
leds
- LED Subsystemcolor
- The color
-
-
Method Details
-
execute
public void execute() -
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabled
in classCommand
-