Class SpectrumLEDs.Config

java.lang.Object
frc.spectrumLib.leds.SpectrumLEDs.Config
Direct Known Subclasses:
LedFull.LedFullConfig, LedLeft.LedConfig, LedRight.LedConfig
Enclosing class:
SpectrumLEDs

public static class SpectrumLEDs.Config extends Object
  • Constructor Details

    • Config

      public Config(String name, int length)
    • Config

      public Config(String name, edu.wpi.first.wpilibj.AddressableLED l, edu.wpi.first.wpilibj.AddressableLEDBuffer lb, int startingIndex, int endingIndex)
  • Method Details

    • getName

      public String getName()
    • isAttached

      public boolean isAttached()
    • setAttached

      public SpectrumLEDs.Config setAttached(boolean attached)
      Returns:
      this.
    • getLed

      public edu.wpi.first.wpilibj.AddressableLED getLed()
    • setLed

      public SpectrumLEDs.Config setLed(edu.wpi.first.wpilibj.AddressableLED led)
      Returns:
      this.
    • getBuffer

      public edu.wpi.first.wpilibj.AddressableLEDBuffer getBuffer()
    • setBuffer

      public SpectrumLEDs.Config setBuffer(edu.wpi.first.wpilibj.AddressableLEDBuffer buffer)
      Returns:
      this.
    • getView

      public edu.wpi.first.wpilibj.AddressableLEDBufferView getView()
    • setView

      public SpectrumLEDs.Config setView(edu.wpi.first.wpilibj.AddressableLEDBufferView view)
      Returns:
      this.
    • getStartingIndex

      public int getStartingIndex()
    • setStartingIndex

      public SpectrumLEDs.Config setStartingIndex(int startingIndex)
      Returns:
      this.
    • getEndingIndex

      public int getEndingIndex()
    • setEndingIndex

      public SpectrumLEDs.Config setEndingIndex(int endingIndex)
      Returns:
      this.
    • getPort

      public int getPort()
    • setPort

      public SpectrumLEDs.Config setPort(int port)
      Returns:
      this.
    • getLength

      public int getLength()
    • setLength

      public SpectrumLEDs.Config setLength(int length)
      Returns:
      this.
    • getLedSpacing

      public edu.wpi.first.units.measure.Distance getLedSpacing()
    • setLedSpacing

      public SpectrumLEDs.Config setLedSpacing(edu.wpi.first.units.measure.Distance ledSpacing)
      Returns:
      this.