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
,Closeable
,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
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
close, getMode
Methods inherited from interface com.diozero.api.DeviceInterface
getKey, isOpen
-
Constructor Details
-
PiconZeroAnalogOutputDevice
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceAnalogOutputDeviceInterface
- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValue
in interfaceAnalogOutputDeviceInterface
- Throws:
RuntimeIOException
-
getAdcNumber
public int getAdcNumber()- Specified by:
getAdcNumber
in interfaceAnalogOutputDeviceInterface
-
closeDevice
- Specified by:
closeDevice
in classAbstractDevice
- Throws:
RuntimeIOException
-