Class RemoteDigitalOutputDevice
java.lang.Object
com.diozero.internal.spi.AbstractDevice
com.diozero.internal.provider.remote.devicefactory.RemoteDigitalOutputDevice
- All Implemented Interfaces:
DeviceInterface,GpioDeviceInterface,GpioDigitalDeviceInterface,GpioDigitalOutputDeviceInterface,Closeable,AutoCloseable
public class RemoteDigitalOutputDevice extends AbstractDevice implements GpioDigitalOutputDeviceInterface
-
Constructor Summary
Constructors Constructor Description RemoteDigitalOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue) -
Method Summary
Modifier and Type Method Description protected voidcloseDevice()intgetGpio()booleangetValue()voidsetValue(boolean value)Methods inherited from class com.diozero.internal.spi.AbstractDevice
close, getDeviceFactory, getKey, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.diozero.api.DeviceInterface
close, getKey, isOpenMethods inherited from interface com.diozero.internal.spi.GpioDigitalOutputDeviceInterface
getMode
-
Constructor Details
-
RemoteDigitalOutputDevice
public RemoteDigitalOutputDevice(RemoteDeviceFactory deviceFactory, String key, PinInfo pinInfo, boolean initialValue)
-
-
Method Details
-
getGpio
public int getGpio()- Specified by:
getGpioin interfaceGpioDeviceInterface
-
getValue
- Specified by:
getValuein interfaceGpioDigitalDeviceInterface- Throws:
RuntimeIOException
-
setValue
- Specified by:
setValuein interfaceGpioDigitalOutputDeviceInterface- Throws:
RuntimeIOException
-
closeDevice
- Specified by:
closeDevicein classAbstractDevice- Throws:
RuntimeIOException
-