public class LED extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
LED(DigitalChannelController controller,
int physicalPort)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this device
|
void |
enable(boolean set)
A method to turn on or turn off the LED
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Device Name
|
int |
getVersion()
Version
|
public LED(DigitalChannelController controller, int physicalPort)
controller - Digital Channel Controller this LED is attached tophysicalPort - the physical port it's plugged into.public void enable(boolean set)
set - - true turns it on, false turns it off.public java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicepublic java.lang.String getConnectionInfo()
HardwareDevicegetConnectionInfo in interface HardwareDevicepublic int getVersion()
HardwareDevicegetVersion in interface HardwareDevicepublic void close()
HardwareDeviceclose in interface HardwareDevice