This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add LED integration to shooter (#72)
Co-authored-by: Jade <[email protected]>
- Loading branch information
1 parent
11af318
commit b0ff1f1
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2024 CurtinFRC | ||
// Open Source Software, you can modify it according to the terms | ||
// of the MIT License at the root of this project | ||
|
||
package frc.robot.subsystems; | ||
|
||
import edu.wpi.first.wpilibj.PWM; | ||
import frc.robot.Constants; | ||
|
||
public final class LED { | ||
private static final PWM ledpwm = new PWM(Constants.LEDport); | ||
|
||
private LED() {} | ||
|
||
public static void Intake() { | ||
ledpwm.setSpeed(0.59); // dark red // | ||
} | ||
|
||
public static void Outake() { | ||
ledpwm.setSpeed(0.69); // yellow // | ||
} | ||
|
||
public static void Spinup() { | ||
ledpwm.setSpeed(0.63); // red orange, 0.65 for normal orange // | ||
} | ||
|
||
public static void Stop() { | ||
ledpwm.setSpeed(0.73); // lime // | ||
} | ||
|
||
public static void Maintain() { | ||
ledpwm.setSpeed(0.57); // hot pink // | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters