Package com.diozero.internal.spi
Interface GpioDigitalInputDeviceInterface
- All Superinterfaces:
AutoCloseable
,DeviceInterface
,GpioDeviceInterface
,GpioDigitalDeviceInterface
,InternalDeviceInterface
- All Known Implementing Classes:
MCP23xxxDigitalInputDevice
,NativeGpioInputDevice
,PiconZero.PiconZeroDigitalInputDevice
,SysFsDigitalInputDevice
public interface GpioDigitalInputDeviceInterface extends GpioDigitalDeviceInterface
-
Method Summary
Modifier and Type Method Description default DeviceMode
getMode()
void
removeListener()
void
setDebounceTimeMillis(int debounceTime)
void
setListener(DeviceEventConsumer<DigitalInputEvent> listener)
Methods inherited from interface com.diozero.api.DeviceInterface
close
Methods inherited from interface com.diozero.internal.spi.GpioDeviceInterface
getGpio
Methods inherited from interface com.diozero.internal.spi.GpioDigitalDeviceInterface
getValue
Methods inherited from interface com.diozero.internal.spi.InternalDeviceInterface
getKey, isOpen
-
Method Details
-
setDebounceTimeMillis
void setDebounceTimeMillis(int debounceTime) -
setListener
-
removeListener
void removeListener() -
getMode
- Specified by:
getMode
in interfaceGpioDeviceInterface
-