类 AbstractDIDevice

所有已实现的接口:
Device
直接已知子类:
Button

public abstract class AbstractDIDevice extends AbstractDigitalDevice
数字信号输入设备
作者:
Harlan
  • 字段详细资料

    • digitalInput

      protected final com.pi4j.io.gpio.digital.DigitalInput digitalInput
      The DigitalInput instance.
    • pull

      protected final com.pi4j.io.gpio.digital.PullResistance pull
      The pull resistance.
    • debounceMicSec

      protected final long debounceMicSec
      The debounce time in microseconds.
    • onUpTask

      protected final Runnable onUpTask
      The task to be executed when the input signal goes from low to high.
    • onDownTask

      protected final Runnable onDownTask
      The task to be executed when the input signal goes from high to low.
  • 构造器详细资料

    • AbstractDIDevice

      protected AbstractDIDevice(DeviceManager deviceManager, String id, String name, IBCMEnums address, boolean inverted, long debounceMicSec, Runnable onUpTask, Runnable onDownTask)
      Initializes an instance of the AbstractDIDevice class.
      参数:
      deviceManager - The DeviceManager instance.
      id - The ID of the device.
      name - The name of the device.
      address - The IBCMEnums address of the device.
      inverted - Indicates whether the input signal is inverted.
      debounceMicSec - The debounce time in microseconds.
      onUpTask - The task to be executed when the input signal goes from low to high.
      onDownTask - The task to be executed when the input signal goes from high to low.
  • 方法详细资料