public static class PiconZero.PiconZeroAnalogInputDevice extends AbstractInputDevice<AnalogInputEvent> implements AnalogInputDeviceInterface
Constructor and Description |
---|
PiconZeroAnalogInputDevice(PiconZero piconZero,
String key,
PinInfo pinInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeDevice() |
int |
getAdcNumber() |
int |
getChannel() |
float |
getValue() |
disableListener, enableListener, generatesEvents, removeListener, setListener, valueChanged
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, generatesEvents, getMode, removeListener, setListener
getKey, isOpen
protected 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–2018 mattjlewis. All rights reserved.