Class LEDController

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.leds.LEDController
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem

public class LEDController extends edu.wpi.first.wpilibj2.command.SubsystemBase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private edu.wpi.first.wpilibj.AddressableLEDBuffer
     
    private final edu.wpi.first.wpilibj.LEDPattern
     
    private edu.wpi.first.wpilibj.AddressableLEDBufferView
     
    private edu.wpi.first.wpilibj.AddressableLEDBufferView
     
    private static final LEDController
     
    private edu.wpi.first.wpilibj.AddressableLEDBufferView
     
    private edu.wpi.first.wpilibj.AddressableLED
     
    private edu.wpi.first.wpilibj.AddressableLEDBufferView
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyFeed(edu.wpi.first.wpilibj.LEDPattern pattern)
     
    void
    applyHandoff(edu.wpi.first.wpilibj.LEDPattern pattern)
     
    void
    applyIntake(edu.wpi.first.wpilibj.LEDPattern pattern)
     
    void
    applyPattern(edu.wpi.first.wpilibj.LEDPattern pattern)
     
    void
    applyShoot(edu.wpi.first.wpilibj.LEDPattern pattern)
     
     
    void
     

    Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase

    addChild, getName, getSubsystem, initSendable, setName, setSubsystem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem

    defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
  • Field Details

    • instance

      private static final LEDController instance
    • defaultPattern

      private final edu.wpi.first.wpilibj.LEDPattern defaultPattern
    • led

      private edu.wpi.first.wpilibj.AddressableLED led
    • buffer

      private edu.wpi.first.wpilibj.AddressableLEDBuffer buffer
    • shooterView

      private edu.wpi.first.wpilibj.AddressableLEDBufferView shooterView
    • feederView

      private edu.wpi.first.wpilibj.AddressableLEDBufferView feederView
    • intakeView

      private edu.wpi.first.wpilibj.AddressableLEDBufferView intakeView
    • handoffView

      private edu.wpi.first.wpilibj.AddressableLEDBufferView handoffView
  • Constructor Details

  • Method Details

    • getInstance

      public static LEDController getInstance()
    • applyShoot

      public void applyShoot(edu.wpi.first.wpilibj.LEDPattern pattern)
    • applyFeed

      public void applyFeed(edu.wpi.first.wpilibj.LEDPattern pattern)
    • applyIntake

      public void applyIntake(edu.wpi.first.wpilibj.LEDPattern pattern)
    • applyHandoff

      public void applyHandoff(edu.wpi.first.wpilibj.LEDPattern pattern)
    • applyPattern

      public void applyPattern(edu.wpi.first.wpilibj.LEDPattern pattern)
    • periodic

      public void periodic()