Package com.diozero.devices
Class PiconZero.PiconZeroAnalogOutputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.devices.PiconZero.PiconZeroAnalogOutputDevice
-
- All Implemented Interfaces:
DeviceInterface
,AnalogOutputDeviceInterface
,InternalDeviceInterface
,AutoCloseable
- Enclosing class:
- PiconZero
public static class PiconZero.PiconZeroAnalogOutputDevice extends AbstractDevice implements AnalogOutputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description PiconZeroAnalogOutputDevice(PiconZero piconZero, String key, int adcNumber, int channel, float initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeDevice()
int
getAdcNumber()
float
getValue()
void
setValue(float value)
-
Methods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isOpen
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diozero.internal.spi.AnalogOutputDeviceInterface
getMode
-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpen
-
-
-
-
Method Detail
-
getValue
public float getValue() throws RuntimeIOException
- Specified by:
getValue
in interfaceAnalogOutputDeviceInterface
- Throws:
RuntimeIOException
-
setValue
public void setValue(float value) throws RuntimeIOException
- Specified by:
setValue
in interfaceAnalogOutputDeviceInterface
- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()
- Specified by:
getAdcNumber
in interfaceAnalogOutputDeviceInterface
-
closeDevice
protected void closeDevice() throws RuntimeIOException
- Specified by:
closeDevice
in classAbstractDevice
- Throws:
RuntimeIOException
-
-