public class DotStarsLEDStrip extends java.lang.Object implements CasseroleLEDInterface
m_update_period_ms
Constructor and Description |
---|
DotStarsLEDStrip(int numLEDs)
Constructor for led strip class
|
Modifier and Type | Method and Description |
---|---|
void |
clearColorBuffer()
Clears all contents in the color buffer.
|
void |
setLEDColor(int index,
double r,
double g,
double b)
sets a particular LED in the string to a certain color
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntermedeateColor, hueToRgb, setLEDColor, setLEDColorHSL
public DotStarsLEDStrip(int numLEDs)
numLEDs
- number of LED's in the total strip.public void clearColorBuffer()
clearColorBuffer
in interface CasseroleLEDInterface
public void setLEDColor(int index, double r, double g, double b)
setLEDColor
in interface CasseroleLEDInterface
index
- Index in the LED to set. 0 is the furthest from the roboRIO, N is the closest.r
- Red value for the color. Provide as a double in the range of 0 (off) to 1 (full on)g
- Green value for the color. Provide as a double in the range of 0 (off) to 1 (full
on)b
- Blue value for the color. Provide as a double in the range of 0 (off) to 1 (full on)