public class OlimexGpioExample extends Object
This example code demonstrates how to setup a custom GpioProvider for GPIO pin state control and monitoring.
This example implements the Olimex AVR-IO-M-16 expansion board. 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.
Constructor and Description |
---|
OlimexGpioExample() |
public static void main(String[] args) throws InterruptedException, IOException
InterruptedException
IOException
Copyright © 2012–2016 Pi4J. All rights reserved.