public class MCP3004GpioExampleNonMonitored extends Object
This example code demonstrates how to setup a custom GpioProvider for analog output pin using the MCP3004 ADC chip. This example configures the MCP3004 without background monitoring and eventing.
This GPIO provider implements the MCP3004 10-Bit Analog-to-Digital Converter (ADC) as native Pi4J GPIO pins.
The MCP3004 is connected via SPI connection to the Raspberry Pi and provides 8 GPIO analog input pins.
Constructor and Description |
---|
MCP3004GpioExampleNonMonitored() |
Copyright © 2012–2016 Pi4J. All rights reserved.