pca9674a — I2C Expander Driver¶
8-bit I/O expander.
class PCA9674A – 8-bit I/O expander¶
- class pca9674a.PCA9674A(bus: machine.I2C, irq_pin: str, address: int = 63, callback: Callable | None = None)¶
Creates an interface to the I/O expander.
busis themachine.I2Cbus the expander is connected to.irq_pinis the pin label connected to the expander’s IRQ output.addressis the I2C address of the expander.callbackis invoked on the falling edge ofirq_pinwhen any pin state changes.