Skip to content

Library doesn't work with Circuitpython 8.0.5 #2

@sirtux

Description

@sirtux

I'm trying to get your library to run on Adafruit CircuitPython 8.0.5 on 2023-03-31; Raspberry Pi Pico W with rp2040,
and have minimally adjusted the example code (just the I2C-Bus):

import board, busio
from gpio_expander import PCA9534, PCA9555
_pca9555 = PCA9555(busio.I2C(scl=board.GP1, sda=board.GP0), 0x74)
print(_pca9555.I0_0)  # pylint: disable=no-member

However, this creates an exception:

Traceback (most recent call last):
  File "code.py", line 9, in <module>
  File "gpio_expander.py", line 118, in <module>
TypeError: function doesn't take keyword arguments

So, something weird is happening, I assume it has to do with your metaclass sorcercy (which I honestly do not understand at all).

With which circuitpython version did you test?
Do you have any clue for me how to fix this?

Thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions