Package frc.robot.commands.leds
Class Twinkle
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.Twinkle
- All Implemented Interfaces:
Sendable
Command to move LEDs back and forth like a Cylon eye
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, end, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
Twinkle
Creates a twinkle effect- Parameters:
leds- The LED Subsystemcount- The number of LEDs to twinklecolors- The colors to randomly select
-
Twinkle
Creates a twinkle effect using random colors- Parameters:
leds- The LED Subsystemcount- The number of LEDs to twinkle
-
Twinkle
Creates a twinkle effect with 20 LEDs and random colors- Parameters:
leds- The LED Subsystem
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classCommand
-
execute
public void execute() -
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classCommand
-