public class MCP4725GpioProvider extends GpioProviderBase
This GPIO provider implements the MCP4725 12-Bit Digital-to-Analog Converter as native Pi4J GPIO pins. More information about the board can be found here: http://http://www.adafruit.com/product/935
The MCP4725 is connected via SPI connection to the Raspberry Pi and provides 1 GPIO analog output pin.
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
static int |
MCP4725_ADDRESS_1 |
static int |
MCP4725_ADDRESS_2 |
static String |
NAME |
cache, isshutdown, listeners| Constructor and Description |
|---|
MCP4725GpioProvider(I2CBus bus,
int address) |
MCP4725GpioProvider(int busNumber,
int address) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
void |
setValue(Pin pin,
double percentage) |
void |
shutdown() |
addListener, dispatchPinAnalogValueChangeEvent, dispatchPinDigitalStateChangeEvent, export, export, getMode, getPinCache, getPullResistance, getPwm, getState, getValue, hasPin, isExported, isShutdown, removeAllListeners, removeListener, setMode, setPullResistance, setPwm, setState, unexportpublic static final String NAME
public static final String DESCRIPTION
public static final int MCP4725_ADDRESS_1
public static final int MCP4725_ADDRESS_2
public MCP4725GpioProvider(int busNumber,
int address)
throws IOException
IOExceptionpublic MCP4725GpioProvider(I2CBus bus, int address) throws IOException
IOExceptionpublic void setValue(Pin pin, double percentage)
setValue in interface GpioProvidersetValue in class GpioProviderBasepublic String getName()
getName in interface GpioProvidergetName in class GpioProviderBasepublic void shutdown()
shutdown in interface GpioProvidershutdown in class GpioProviderBaseCopyright © 2012–2015 Pi4J. All rights reserved.