Class MovingColorLEDs

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.MovingColorLEDs
All Implemented Interfaces:
Sendable

public class MovingColorLEDs extends Command
Command to move LEDs back and forth like a Cylon eye
  • Constructor Details

    • MovingColorLEDs

      public MovingColorLEDs(LEDs leds, Color color, int count, boolean inverted)
      Command to move LEDs back and forth like a Cylon eye
      Parameters:
      leds - LED subsystem
      color - Color to which to set the LEDs
      count - The number of LEDs in the moving dot. Best is an odd number.
      inverted - Whether to invert the Color that moves.
  • Method Details