Use following constructors if you want to create some MCP492x from your python scripts.
Parameters :
from webiopi.devices.analog import MCP4921, MCP4922
# Setup a MCP4922 on SPI CE0
mcp0 = MCP4922()
# or
mcp0 = MCP4922(chip=0)
# Setup a MCP4922 on SPI CE1
mcp1 = MCP4922(chip=1)
Use following syntax to setup some MCP492x in the webiopi service/command configuration file.
[DEVICES]
# Setup a MCP4922 on SPI CE0
mcp0 = MCP4922
# or
mcp0 = MCP4922 chip:0
# Setup a MCP4922 on SPI CE1
mcp1 = MCP4922 chip:1