PCF8574 series I2C GPIO expander

Supported interfaces

Python Constructor

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

Parameters :

from webiopi.devices.digital import PCF8574

# Setup a PCF8574 on I2C slave 0x20 (default)
pcf0 = PCF8574()
# or
pcf0 = PCF8574(slave=0x20)

# Setup a PCF8574 on I2C slave 0x21
pcf1 = PCF8574(slave=0x21)

Configuration File syntax

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

[DEVICES]
# Setup a PCF8574 on I2C slave 0x20 (default)
pcf0 = PCF8574
# or
pcf0 = PCF8574 slave:0x20

# Setup a PCF8574 on I2C slave 0x21
pcf1 = PCF8574 slave:0x21