Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified gradlew
100644 → 100755
Empty file.
25 changes: 25 additions & 0 deletions src/main/java/frc/kelrotlib/example/ExampleLibrary.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package frc.kelrotlib.example;

import edu.wpi.first.wpilibj2.command.SubsystemBase;

public class ExampleLibrary extends SubsystemBase {
/** Creates a new ExampleSubsystem. */
public ExampleLibrary() {

}

public void exampleMethod() {
// Example method that could be used to control LEDs
// This is where you would implement your LED control logic
}

@Override
public void periodic() {
// This method will be called once per scheduler run
}

@Override
public void simulationPeriodic() {
// This method will be called once per scheduler run during simulation
}
}
9 changes: 9 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

package frc.robot;

import static edu.wpi.first.units.Units.Meters;

import edu.wpi.first.units.measure.Distance;

public final class Constants {
public static class LedConstants {
public static final int kLedPort = 6; //PWM port on RoborIO
public static final int kLedLength = 60; //led count
public static final Distance kLedSpacing = Meters.of(1/ 60.0); // density of 120 LEDs per meter
}

}
1 change: 0 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class RobotContainer {

public RobotContainer() {

configureBindings();
}

Expand Down
10 changes: 10 additions & 0 deletions src/main/java/frc/robot/subsystems/ExampleLibrarySubsystem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package frc.robot.subsystems;

import frc.kelrotlib.leds.ExampleLibrary;

public class ExampleLibrarySubsystem extends ExampleLibrary {

public ExampleLibrarySubsystem() {

}
}