public final class LED
extends edu.wpi.first.wpilibj.command.Subsystem
| Constructor | Description |
|---|---|
LED() |
Constructs a new
LED Subsystem. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
changeAllianceColor() |
Changes the color from red to blue based on the robot's alliance.
|
void |
changeIntakeColor() |
If teleop mode is enabled, then the LEDs stay red by default.
|
void |
endGameColors() |
Randomly cycles through a bunch of different colors.
|
protected void |
initDefaultCommand() |
Sets the LEDs to be disabled by default.
|
void |
setLEDCommand(edu.wpi.first.wpilibj.command.Command ledCommand) |
Changes the command that the LEDs run when the robot is changed from teleop, to auton, to disabled.
|
void |
turnOffAll() |
Turns off all LEDs.
|
void |
turnOnBlue() |
Turns on blue LEDs.
|
void |
turnOnGreen() |
Turns on green LEDs.
|
void |
turnOnRed() |
Turns on red LEDs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSubsystem, setName, setName, setSubsystemprotected void initDefaultCommand()
initDefaultCommand in class edu.wpi.first.wpilibj.command.Subsystempublic void turnOnRed()
public void turnOnGreen()
public void turnOnBlue()
public void turnOffAll()
public void changeIntakeColor()
public void changeAllianceColor()
public void endGameColors()
public void setLEDCommand(edu.wpi.first.wpilibj.command.Command ledCommand)
ledCommand - The command to run on the LEDs.