类 Button

所有已实现的接口:
Device

public class Button extends AbstractDIDevice
作者:
Harlan
  • 构造器详细资料

    • Button

      public Button(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.