Package frc.spectrumLib.leds
Class SpectrumLEDs.Config
java.lang.Object
frc.spectrumLib.leds.SpectrumLEDs.Config
- Direct Known Subclasses:
LedFull.LedFullConfig,LedLeft.LedConfig,LedRight.LedConfig
- Enclosing class:
- SpectrumLEDs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj.AddressableLEDBufferintedu.wpi.first.wpilibj.AddressableLEDgetLed()edu.wpi.first.units.measure.DistanceintgetName()intgetPort()intedu.wpi.first.wpilibj.AddressableLEDBufferViewgetView()booleanvoidsetAttached(boolean attached) voidsetBuffer(edu.wpi.first.wpilibj.AddressableLEDBuffer buffer) voidsetEndingIndex(int endingIndex) voidsetLed(edu.wpi.first.wpilibj.AddressableLED led) voidsetLedSpacing(edu.wpi.first.units.measure.Distance ledSpacing) voidsetLength(int length) voidsetPort(int port) voidsetStartingIndex(int startingIndex) voidsetView(edu.wpi.first.wpilibj.AddressableLEDBufferView view)
-
Constructor Details
-
Config
-
Config
public Config(String name, edu.wpi.first.wpilibj.AddressableLED l, edu.wpi.first.wpilibj.AddressableLEDBuffer lb, int startingIndex, int endingIndex)
-
-
Method Details
-
getName
-
isAttached
public boolean isAttached() -
setAttached
public void setAttached(boolean attached) -
getLed
public edu.wpi.first.wpilibj.AddressableLED getLed() -
setLed
public void setLed(edu.wpi.first.wpilibj.AddressableLED led) -
getBuffer
public edu.wpi.first.wpilibj.AddressableLEDBuffer getBuffer() -
setBuffer
public void setBuffer(edu.wpi.first.wpilibj.AddressableLEDBuffer buffer) -
getView
public edu.wpi.first.wpilibj.AddressableLEDBufferView getView() -
setView
public void setView(edu.wpi.first.wpilibj.AddressableLEDBufferView view) -
getStartingIndex
public int getStartingIndex() -
setStartingIndex
public void setStartingIndex(int startingIndex) -
getEndingIndex
public int getEndingIndex() -
setEndingIndex
public void setEndingIndex(int endingIndex) -
getPort
public int getPort() -
setPort
public void setPort(int port) -
getLength
public int getLength() -
setLength
public void setLength(int length) -
getLedSpacing
public edu.wpi.first.units.measure.Distance getLedSpacing() -
setLedSpacing
public void setLedSpacing(edu.wpi.first.units.measure.Distance ledSpacing)
-