-
Notifications
You must be signed in to change notification settings - Fork 4
read_i2c_block_data() needs updating for CircuitPython 6 - "extra keyword arguments given" error #1
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
Comments
The recommened (more efficient) replacement
|
If you want to avoid this problem on your Enviro+, you may want to use this library for your LTR559: There is a bit of discussion on the evolution of Pimoroni libraries to be a better CP citizen:
(It does not fix the problem with this library, but it might be the way to go) |
…to_then_readfrom() to make this work with CircuitPython 6.x (and 5.3.x) pimoroni#1
Thanks, I'll have a look. I just put PR #2 in which I think fixes all of this. |
Fixed with #2 |
The combined plotted program spits this on CircuitPython 6.0.0 on a Feather nRF52840 Express with Enviro+ FeatherWing attached but no PMS5003:
This is due to the removal of the stop kwarg from
I2C.writeto()
in CircuitPython 6.0.0 (see adafruit/circuitpython#2082 for details).The documentation for this on 6.0.x is currently incorrect. I confirmed that with @dhalbert.
The text was updated successfully, but these errors were encountered: