public static class PiconZero.PiconZeroAnalogInputDevice extends AbstractDevice implements AnalogInputDeviceInterface
Constructor and Description |
---|
PiconZeroAnalogInputDevice(PiconZero piconZero,
String key,
PinInfo pinInfo) |
Modifier and Type | Method and Description |
---|---|
void |
closeDevice() |
int |
getAdcNumber() |
int |
getChannel() |
float |
getValue() |
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
getKey, isOpen
public void closeDevice()
closeDevice
in class AbstractDevice
public float getValue() throws RuntimeIOException
getValue
in interface AnalogInputDeviceInterface
RuntimeIOException
public int getAdcNumber()
getAdcNumber
in interface AnalogInputDeviceInterface
public int getChannel()
Copyright © 2016–2017 mattjlewis. All rights reserved.