MCP4925 I2C Digital-to-Analog Converter

Supported interfaces

Python Constructor

Use following constructors if you want to create some MCP4725 from your python scripts.

Parameters :

from webiopi.devices.analog import MCP4725

# Setup a MCP4725 on I2C slave 0x60 (default)
mcp0 = MCP4725()
# or
mcp0 = MCP4725(slave=0x60)

# Setup a MCP4725 on I2C slave 0x61
mcp1 = MCP4725(slave=0x61)

Configuration File syntax

Use following syntax to setup some MCP4725 in the webiopi service/command configuration file.

[DEVICES]
# Setup a MCP4725 on I2C slave 0x60 (default)
mcp0 = MCP4725
# or
mcp0 = MCP4725 slave:0x60

# Setup a MCP4725 on I2C slave 0x61
mcp1 = MCP4725 slave:0x61