Class WaitableDigitalInputDevice

All Implemented Interfaces:
DeviceInterface, DigitalInputDeviceInterface, DeviceEventConsumer<DigitalInputEvent>, AutoCloseable, Consumer<DigitalInputEvent>

@Deprecated
public class WaitableDigitalInputDevice
extends DigitalInputDevice
Deprecated.
Functionality has moved up to AbstractDigitalInputDevice
Represents a digital input device with distinct waitable states (active / inactive).
  • Constructor Details

    • WaitableDigitalInputDevice

      public WaitableDigitalInputDevice​(int gpio) throws RuntimeIOException
      Deprecated.
      Parameters:
      gpio - GPIO to which the device is connected.
      Throws:
      RuntimeIOException - If an I/O error occurred.
    • WaitableDigitalInputDevice

      public WaitableDigitalInputDevice​(int gpio, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
      Deprecated.
      Parameters:
      gpio - GPIO to which the device is connected.
      pud - Pull up/down configuration, values: NONE, PULL_UP, PULL_DOWN.
      trigger - Event trigger configuration, values: NONE, RISING, FALLING, BOTH.
      Throws:
      RuntimeIOException - If an I/O error occurred.
    • WaitableDigitalInputDevice

      public WaitableDigitalInputDevice​(GpioDeviceFactoryInterface deviceFactory, int gpio, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
      Deprecated.
      Parameters:
      deviceFactory - Device factory to use to construct the device.
      gpio - GPIO to which the device is connected.
      pud - Pull up/down configuration, values: NONE, PULL_UP, PULL_DOWN.
      trigger - Event trigger configuration, values: NONE, RISING, FALLING, BOTH.
      Throws:
      RuntimeIOException - If an I/O error occurred.
  • Method Details