public class MCP23xxxDigitalInputDevice extends AbstractInputDevice<DigitalInputEvent> implements GpioDigitalInputDeviceInterface
Constructor and Description |
---|
MCP23xxxDigitalInputDevice(MCP23xxx mcp23xxx,
String key,
int gpio,
GpioEventTrigger trigger) |
Modifier and Type | Method and Description |
---|---|
void |
closeDevice() |
int |
getGpio() |
boolean |
getValue() |
void |
setDebounceTimeMillis(int debounceTime) |
disableListener, enableListener, removeListener, setListener, valueChanged
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeListener, setListener
close, getKey, isOpen
public MCP23xxxDigitalInputDevice(MCP23xxx mcp23xxx, String key, int gpio, GpioEventTrigger trigger)
public void closeDevice() throws RuntimeIOException
closeDevice
in class AbstractDevice
RuntimeIOException
public boolean getValue() throws RuntimeIOException
getValue
in interface GpioDigitalDeviceInterface
RuntimeIOException
public int getGpio()
getGpio
in interface GpioDeviceInterface
public void setDebounceTimeMillis(int debounceTime)
setDebounceTimeMillis
in interface GpioDigitalInputDeviceInterface
Copyright © 2016–2017 mattjlewis. All rights reserved.