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