public class DebouncedDigitalInputDevice extends WaitableDigitalInputDevice
lastPinEvent
activeHigh, device, pud, trigger
listeners
pinNumber
Constructor and Description |
---|
DebouncedDigitalInputDevice(int pinNumber) |
DebouncedDigitalInputDevice(int pinNumber,
GpioPullUpDown pud,
float debounceTime) |
DebouncedDigitalInputDevice(int pinNumber,
GpioPullUpDown pud,
float debounceTime,
GpioEventTrigger trigger) |
Modifier and Type | Method and Description |
---|---|
void |
setDebounceTime(float debounceTime) |
disableListener, valueChanged, waitForActive, waitForActive, waitForInactive, waitForInactive, waitForValue
close, enableListener, getPullUpDown, getTrigger, getValue, isActive, isActiveHigh, whenActivated, whenDeactivated
addListener, removeAllListeners, removeListener
getPinNumber
public DebouncedDigitalInputDevice(int pinNumber) throws RuntimeIOException
RuntimeIOException
public DebouncedDigitalInputDevice(int pinNumber, GpioPullUpDown pud, float debounceTime) throws RuntimeIOException
pinNumber
- GPIOpud
- Pull-up/down configuratoindebounceTime
- Specifies the length of time (in seconds) that the component
will ignore changes in state after an initial change. This
defaults to 0 which indicates that no bounce compensation will
be performed.RuntimeIOException
- if an I/O error occurspublic DebouncedDigitalInputDevice(int pinNumber, GpioPullUpDown pud, float debounceTime, GpioEventTrigger trigger) throws RuntimeIOException
RuntimeIOException
Copyright © 2016 mattjlewis. All rights reserved.