Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library doesn't work with Circuitpython 8.0.5 #2

Open
sirtux opened this issue May 20, 2023 · 0 comments
Open

Library doesn't work with Circuitpython 8.0.5 #2

sirtux opened this issue May 20, 2023 · 0 comments

Comments

@sirtux
Copy link

sirtux commented May 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant