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.AddressableLEDBuffer
int
edu.wpi.first.wpilibj.AddressableLED
getLed()
edu.wpi.first.units.measure.Distance
int
getName()
int
getPort()
int
edu.wpi.first.wpilibj.AddressableLEDBufferView
getView()
boolean
setAttached
(boolean attached) setBuffer
(edu.wpi.first.wpilibj.AddressableLEDBuffer buffer) setEndingIndex
(int endingIndex) setLed
(edu.wpi.first.wpilibj.AddressableLED led) setLedSpacing
(edu.wpi.first.units.measure.Distance ledSpacing) setLength
(int length) setPort
(int port) setStartingIndex
(int startingIndex) setView
(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
- Returns:
this
.
-
getLed
public edu.wpi.first.wpilibj.AddressableLED getLed() -
setLed
- Returns:
this
.
-
getBuffer
public edu.wpi.first.wpilibj.AddressableLEDBuffer getBuffer() -
setBuffer
- Returns:
this
.
-
getView
public edu.wpi.first.wpilibj.AddressableLEDBufferView getView() -
setView
- Returns:
this
.
-
getStartingIndex
public int getStartingIndex() -
setStartingIndex
- Returns:
this
.
-
getEndingIndex
public int getEndingIndex() -
setEndingIndex
- Returns:
this
.
-
getPort
public int getPort() -
setPort
- Returns:
this
.
-
getLength
public int getLength() -
setLength
- Returns:
this
.
-
getLedSpacing
public edu.wpi.first.units.measure.Distance getLedSpacing() -
setLedSpacing
- Returns:
this
.
-