-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pi PICO support #6
Comments
I wrote this library for a single project a long time ago. Now I work for Adafruit 🙂, and I'll regularize the constructor. The normal thing we do now is to have you pass in an |
Changed but not tested:
i2c = busio.i2c(scl=board.GP1, sda=board.GP0)
interface = I2CPCF8574Interface(i2c, i2c_address)
... I think I've fixed the Most of my work on this has been on the |
Now that you work at adafruit, any news if PCF8574 will be supported in the official adafruit cricuitpython libraries for i2c displays? |
my code this is giving me an error
|
It should be |
The Pico has configurable SPI pins.
Adafruit has a straight forward explanation: https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/pinouts - scroll down the the i2c section.
Easy hack-fix is to change
i2c_pcf8574_interface.py
:A better/simple fix is probably to add
scl
andsda
parameters to__init__
with default values ofboard.SCL
andboard.SDA
respectively.The text was updated successfully, but these errors were encountered: