Use following constructors if you want to create some MCP230xx from your Python scripts.
Parameters :
from webiopi.devices.digital import MC23S17
# Setup a MC23S17 on SPI CE0 with slave address 0x20 (default)
mcp0 = MC23S17()
# or
mcp0 = MC23S17(chip=0, slave=0x20)
# Setup a MCP3008 on SPI CE0 with slave address 0x21
mcp1 = MC23S17(chip=0, slave=0x21)
Use following syntax to setup some MCP3000 in the webiopi service/command configuration file.
[DEVICES]
# Setup a MC23S17 on SPI CE0 with slave address 0x20 (default)
mcp0 = MC23S17
# or
mcp0 = MC23S17 chip:0 slave:0x20
# Setup a MCP3008 on SPI CE0 with slave address 0x21
mcp1 = MC23S17 chip:0 slave:0x21