adafruit_ds2413

CircuitPython driver for the DS2413 one wire 2 channel GPIO breakout.

  • Author(s): Carter Nelson

class adafruit_ds2413.DS2413(bus: OneWireBus, address: int)[source]

Class which provides interface to DS2413 GPIO breakout.

property IOA: DS2413Pin

The pin object for channel A.

property IOB: DS2413Pin

The pin object for channel B.

property pio_state: int

The state of both PIO channels.

class adafruit_ds2413.DS2413Pin(number: Literal[0, 1], host, direction: Literal[0, 1] = 1)[source]

Class which provides interface to single DS2413 GPIO pin.

property direction: Literal[0, 1]

The direction of the pin, either INPUT or OUTPUT.

property value: bool

The pin state if configured as INPUT. The output latch state if configured as OUTPUT. True is HIGH/ON, False is LOW/OFF.