public static class MCP23008Old.MCP23008DigitalOutputDevice extends AbstractDevice implements GpioDigitalOutputDeviceInterface
Constructor and Description |
---|
MCP23008DigitalOutputDevice(MCP23008Old mcp23008,
String key,
int gpio,
boolean initialValue) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeDevice() |
int |
getGpio() |
boolean |
getValue() |
void |
setValue(boolean value) |
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getKey, isOpen
public MCP23008DigitalOutputDevice(MCP23008Old mcp23008, String key, int gpio, boolean initialValue)
public boolean getValue() throws RuntimeIOException
getValue
in interface GpioDigitalDeviceInterface
RuntimeIOException
public void setValue(boolean value) throws RuntimeIOException
setValue
in interface GpioDigitalOutputDeviceInterface
RuntimeIOException
public int getGpio()
getGpio
in interface GpioDeviceInterface
protected void closeDevice() throws RuntimeIOException
closeDevice
in class AbstractDevice
RuntimeIOException
Copyright © 2016–2017 mattjlewis. All rights reserved.