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