mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 00:28:05 -06:00
Update LED.java
This commit is contained in:
@@ -71,7 +71,7 @@ public class OI
|
||||
safteySwitch.whenPressed(new setClimberSafety(true));
|
||||
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.SOLID_YELLOW));
|
||||
safteySwitch.whenReleased(new setClimberSafety(false));
|
||||
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.C1_HEARTBEAT_SLOW));
|
||||
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.C1_HEARTBEAT_FAST));
|
||||
|
||||
JoystickButton climbUp = new JoystickButton(m_driverXbox.getJoyStick(), XboxController.RIGHT_TRIGGER_AXIS);
|
||||
JoystickButton climbDown = new JoystickButton(m_driverXbox.getJoyStick(), XboxController.LEFT_TRIGGER_AXIS);
|
||||
|
||||
@@ -24,7 +24,8 @@ import edu.wpi.first.wpilibj.command.Subsystem;
|
||||
public static Spark LEDController = new Spark(LED_SPARK_ID);
|
||||
|
||||
public LED(){
|
||||
setPattern(LEDPatterns.C1_HEARTBEAT_SLOW);
|
||||
setPattern(LEDPatterns.C1_HEARTBEAT_FAST);
|
||||
LEDController.set(currentLED);
|
||||
}
|
||||
|
||||
public void periodic() {
|
||||
|
||||
Reference in New Issue
Block a user