public static class PiconZero.PiconZeroDigitalInputDevice extends AbstractDevice implements GpioDigitalInputDeviceInterface
Constructor and Description |
---|
PiconZeroDigitalInputDevice(PiconZero piconZero,
String key,
PinInfo pinInfo,
GpioPullUpDown pud,
GpioEventTrigger trigger) |
Modifier and Type | Method and Description |
---|---|
void |
closeDevice() |
int |
getChannel() |
int |
getGpio() |
boolean |
getValue() |
void |
removeListener() |
void |
setDebounceTimeMillis(int debounceTime) |
void |
setListener(InputEventListener<DigitalInputEvent> listener) |
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getKey, isOpen
public PiconZeroDigitalInputDevice(PiconZero piconZero, String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger)
public void closeDevice()
closeDevice
in class AbstractDevice
public int getGpio()
getGpio
in interface GpioDeviceInterface
public int getChannel()
public boolean getValue() throws RuntimeIOException
getValue
in interface GpioDigitalDeviceInterface
RuntimeIOException
public void setDebounceTimeMillis(int debounceTime)
setDebounceTimeMillis
in interface GpioDigitalInputDeviceInterface
public void setListener(InputEventListener<DigitalInputEvent> listener)
setListener
in interface GpioDigitalInputDeviceInterface
public void removeListener()
removeListener
in interface GpioDigitalInputDeviceInterface
Copyright © 2016–2017 mattjlewis. All rights reserved.