public final class LightDrive2812
extends java.lang.Object
| Constructor and Description |
|---|
LightDrive2812()
Construct a LightDrive2812 object and initialize (clear LEDs).
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClearLEDs()
Single function call to clear all LEDs on LightDrive2812.
|
void |
DebugDisable()
Disable internal debugging print statements (default state).
|
void |
DebugEnable()
Enable internal debugging System.out print statements in library to assist debugging.
|
int |
GetVersion()
Get the current Library version.
|
void |
SetRange(java.awt.Color color,
int start,
int count)
Set count LEDs to color beginning at start.
|
void |
SetRangeandClear(java.awt.Color color,
int start,
int count,
int outOf)
Set count LEDs to color beginning at start.
|
void |
Update()
Update function to send latest changes to LightDrive2812 over CANbus.
|
public LightDrive2812()
public int GetVersion()
public void DebugEnable()
public void DebugDisable()
public void ClearLEDs()
public void Update()
public void SetRange(java.awt.Color color,
int start,
int count)
color - The java.awt.Color object representing the color to set.start - The first LED that should be set (0-based)count - The number of LEDs that will be set including startpublic void SetRangeandClear(java.awt.Color color,
int start,
int count,
int outOf)
color - The java.awt.Color to setstart - First LED to set to color (0-based)count - Number of LEDs to set to coloroutOf - Total number of LEDs in pattern (outOf - count will be set to BLACK)