public class MCP23S17GpioExample extends Object
This example code demonstrates how to setup a custom GpioProvider for GPIO pin state control and monitoring.
This example implements the MCP23S17 GPIO expansion board. More information about the board can be found here: * http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf
The MCP23S17 is connected via SPI 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 |
---|
MCP23S17GpioExample() |
public static void main(String[] args) throws InterruptedException, IOException
InterruptedException
IOException
Copyright © 2012–2016 Pi4J. All rights reserved.