Package com.diozero.devices
Class PiconZero.PiconZeroDigitalOutputDevice
- java.lang.Object
-
- com.diozero.internal.spi.AbstractDevice
-
- com.diozero.devices.PiconZero.PiconZeroDigitalOutputDevice
-
- All Implemented Interfaces:
DeviceInterface
,GpioDeviceInterface
,GpioDigitalDeviceInterface
,GpioDigitalOutputDeviceInterface
,InternalDeviceInterface
,AutoCloseable
- Enclosing class:
- PiconZero
public static class PiconZero.PiconZeroDigitalOutputDevice extends AbstractDevice implements GpioDigitalOutputDeviceInterface
-
-
Constructor Summary
Constructors Constructor Description PiconZeroDigitalOutputDevice(PiconZero piconZero, String key, int gpio, int channel, boolean initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeDevice()
int
getChannel()
int
getGpio()
boolean
getValue()
void
setValue(boolean 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.api.DeviceInterface
close
-
Methods inherited from interface com.diozero.internal.spi.GpioDigitalOutputDeviceInterface
getMode
-
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpen
-
-
-
-
Method Detail
-
closeDevice
protected void closeDevice()
- Specified by:
closeDevice
in classAbstractDevice
-
getGpio
public int getGpio()
- Specified by:
getGpio
in interfaceGpioDeviceInterface
-
getChannel
public int getChannel()
-
getValue
public boolean getValue()
- Specified by:
getValue
in interfaceGpioDigitalDeviceInterface
-
setValue
public void setValue(boolean value)
- Specified by:
setValue
in interfaceGpioDigitalOutputDeviceInterface
-
-