public class AnalogInput extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
AnalogInput(AnalogInputController controller,
int channel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Device Name
|
int |
getValue()
Return the current ADC results from the A0-A7 channel input pins.
|
int |
getVersion()
Version
|
public AnalogInput(AnalogInputController controller, int channel)
controller - AnalogInput controller this channel is attached tochannel - channel on the analog input controllerpublic int getValue()
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