public class PCF8574GpioExample extends Object
This example code demonstrates how to setup a custom GpioProvider for GPIO pin state control and monitoring.
This example implements the PCF8574 GPIO expansion board. More information about the board can be found here: * http://www.ti.com/lit/ds/symlink/pcf8574.pdf
The PCF8574 is connected via I2C connection to the Raspberry Pi and provides 16 GPIO pins that can be used for either digital input or digital output pins.
| Constructor and Description |
|---|
PCF8574GpioExample() |
public static void main(String[] args) throws InterruptedException, I2CFactory.UnsupportedBusNumberException, IOException
Copyright © 2012–2018 Pi4J. All rights reserved.