public class LEDInterface
extends java.lang.Object
Constructor and Description |
---|
LEDInterface() |
Modifier and Type | Method and Description |
---|---|
static int |
close()
Close the LED device.
|
static int |
getStatus(int index)
get the status of led
|
static int |
open()
Open the LED device.
|
static int |
turnOff(int index)
Turn off the LED device.
|
static int |
turnOn(int index)
Turn on the LED device.
|
public static int open()
public static int close()
public static int turnOn(int index)
index:
- index of LED, >=0 && <=3public static int turnOff(int index)
index:
- index of LED, >=0 && <=3public static int getStatus(int index)
index:
- index of LED, >=0 && <=3