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, unexportclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, export, export, getPullResistance, getPwm, getValue, hasPin, isExported, isShutdown, removeAllListeners, removeListener, setPullResistance, setPwm, setPwmRange, setValue, unexportpublic static final String NAME
public static final String DESCRIPTION
public OlimexAVRIOGpioProvider(String serialDevice) throws IOException
IOExceptionpublic String getName()
getName in interface GpioProvidergetName in class GpioProviderBasepublic void setMode(Pin pin, PinMode mode)
setMode in interface GpioProvidersetMode in class GpioProviderBasepublic PinMode getMode(Pin pin)
getMode in interface GpioProvidergetMode in class GpioProviderBasepublic void setState(Pin pin, PinState state)
setState in interface GpioProvidersetState in class GpioProviderBasepublic PinState getState(Pin pin)
getState in interface GpioProvidergetState in class GpioProviderBasepublic void shutdown()
shutdown in interface GpioProvidershutdown in class GpioProviderBaseCopyright © 2012–2018 Pi4J. All rights reserved.