类 Button
java.lang.Object
cn.tpkf.rpi.devices.AbstractDevice
cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
cn.tpkf.rpi.devices.gpio.digital.AbstractDigitalDevice
cn.tpkf.rpi.devices.gpio.digital.in.AbstractDIDevice
cn.tpkf.rpi.devices.gpio.digital.in.Button
- 所有已实现的接口:
Device
- 作者:
- Harlan
-
字段概要
从类继承的字段 cn.tpkf.rpi.devices.gpio.digital.in.AbstractDIDevice
debounceMicSec, digitalInput, onDownTask, onUpTask, pull从类继承的字段 cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
address从类继承的字段 cn.tpkf.rpi.devices.AbstractDevice
deviceManager, id, lock, name -
构造器概要
构造器 -
方法概要
从类继承的方法 cn.tpkf.rpi.devices.gpio.digital.in.AbstractDIDevice
getState, isHigh, isLow从类继承的方法 cn.tpkf.rpi.devices.gpio.AbstractGpioDevice
getDescription从类继承的方法 cn.tpkf.rpi.devices.AbstractDevice
shutdown
-
构造器详细资料
-
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.
-