- All Superinterfaces:
AutoCloseable
,DeviceInterface
,GpioDeviceInterface
,GpioDigitalDeviceInterface
,InternalDeviceInterface
- All Known Implementing Classes:
MCP23xxxDigitalInputDevice
,NativeGpioInputDevice
,PiconZero.PiconZeroDigitalInputDevice
,SysFsDigitalInputDevice
-
Method Summary
Modifier and TypeMethodDescriptiondefault DeviceMode
getMode()
void
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, isChild, isOpen, setChild
-
Method Details
-
setDebounceTimeMillis
void setDebounceTimeMillis(int debounceTime) -
setListener
-
removeListener
void removeListener() -
getMode
- Specified by:
getMode
in interfaceGpioDeviceInterface
-