public class OlimexAVRIOGpioProvider extends GpioProviderBase implements GpioProvider
This GPIO provider implements the Olimex AVR-IO-M-16 expansion board as native Pi4J GPIO pins. More information about the board can be found here: * https://www.olimex.com/Products/AVR/Development/AVR-IO-M16/
The Olimex AVR-IO board is connected via RS232 serial connection to the Raspberry Pi and provides 4 electromechanical RELAYs and 4 opto-isolated INPUT pins.
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static String |
NAME |
cache, DEFAULT_CACHE_SIZE, isshutdown, listeners
Constructor and Description |
---|
OlimexAVRIOGpioProvider(String serialDevice) |
Modifier and Type | Method and Description |
---|---|
PinMode |
getMode(Pin pin) |
String |
getName() |
PinState |
getState(Pin pin) |
void |
setMode(Pin pin,
PinMode mode) |
void |
setState(Pin pin,
PinState state) |
void |
shutdown() |
addListener, dispatchPinAnalogValueChangeEvent, dispatchPinDigitalStateChangeEvent, export, export, getPinCache, getPullResistance, getPwm, getValue, hasPin, isExported, isShutdown, removeAllListeners, removeListener, setPullResistance, setPwm, setPwmRange, setValue, unexport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, export, export, getPullResistance, getPwm, getValue, hasPin, isExported, isShutdown, removeAllListeners, removeListener, setPullResistance, setPwm, setPwmRange, setValue, unexport
public static final String NAME
public static final String DESCRIPTION
public OlimexAVRIOGpioProvider(String serialDevice) throws IOException
IOException
public String getName()
getName
in interface GpioProvider
getName
in class GpioProviderBase
public void setMode(Pin pin, PinMode mode)
setMode
in interface GpioProvider
setMode
in class GpioProviderBase
public PinMode getMode(Pin pin)
getMode
in interface GpioProvider
getMode
in class GpioProviderBase
public void setState(Pin pin, PinState state)
setState
in interface GpioProvider
setState
in class GpioProviderBase
public PinState getState(Pin pin)
getState
in interface GpioProvider
getState
in class GpioProviderBase
public void shutdown()
shutdown
in interface GpioProvider
shutdown
in class GpioProviderBase
Copyright © 2012–2016 Pi4J. All rights reserved.