|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Phidgets.Phidget | +--Phidgets.PhidgetLED
The class PhidgetLED
represents a Phidget LED. All methods
to control a Phidget LED are implemented in this class.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
PhidgetLED()
|
Method Summary | |
void |
add_IPhidgetLEDEventsListener(_IPhidgetLEDEvents l)
Sets up the event handlers |
int |
GetDiscreteLED(int Index)
Gets the brightness value of an LEDs from 0-100 |
int |
GetNumLEDs()
Gets the number of LEDs |
int |
OpenRemote(int serverSerial,
int port,
int serialNumber,
java.lang.String pass)
Open the device when it is on the local network. |
int |
OpenRemoteIP(java.lang.String ip,
int port,
int serialNumber,
java.lang.String pass)
Open the device when it is on a remote network. |
void |
remove_IPhidgetLEDEventsListener()
Removes the events handlers |
void |
SetDiscreteLED(int Index,
int newVal)
Sets the brightness of an LED. |
Methods inherited from class Phidgets.Phidget |
Close, equals, GetDeviceType, GetDeviceVersion, GetIsAttached, GetSerialNumber, GetServerAddress, GetServerID, GetServerPort, run, setDeviceType, setDeviceVersion, setSerialNumber |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PhidgetLED()
Method Detail |
public int OpenRemote(int serverSerial, int port, int serialNumber, java.lang.String pass)
serverSerial
- Serial number of the server, or -1 for any serialport
- Server portserialNumber
- Serial number of the device or -1 for any serialpass
- Server passwordpublic int OpenRemoteIP(java.lang.String ip, int port, int serialNumber, java.lang.String pass)
ip
- IP address or hostname of the serverport
- Server portserialNumber
- Serial number of the device or -1 for any serialpass
- Server passwordpublic int GetNumLEDs()
public int GetDiscreteLED(int Index)
Index
- LEDpublic void SetDiscreteLED(int Index, int newVal)
Index
- LEDnewVal
- brightnesspublic void add_IPhidgetLEDEventsListener(_IPhidgetLEDEvents l)
l
- An object implementing the __IPhidgetLEDEvents interfacepublic void remove_IPhidgetLEDEventsListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |