led
This commit is contained in:
22
src/main/java/frc/robot/Subsystems/LED.java
Normal file
22
src/main/java/frc/robot/Subsystems/LED.java
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
package frc.robot.Subsystems;
|
||||
|
||||
import com.ctre.phoenix.led.CANdle;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
|
||||
public class LED extends SubsystemBase {
|
||||
/** Creates a new LED. */
|
||||
public LED() {}
|
||||
CANdle led = new CANdle(0);
|
||||
public void led(int R, int G, int B){
|
||||
led.setLEDs(R, G, B);
|
||||
}
|
||||
@Override
|
||||
public void periodic() {
|
||||
// This method will be called once per scheduler run
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user