-
Notifications
You must be signed in to change notification settings - Fork 10
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
Rpi Pico HW i2c initialization problem #6
Comments
Possibly related to #5 According to the RP2 docs, that looks like the correct way to init HW I2C. Maybe try reducing the freq? Or try I2C1 pins?
Next time I have my Pico handy, I'll try to replicate and update the docs with a working HW I2C config. |
The initialization works for other i2c device (bme280), i literally copied it from working code. i also tried your suggestion of slower i2c / different pins, but same error occurs. Seems there might be bug in this library, but i cannot tell for sure. |
The OSError suggests the display was not found on the I2C bus. |
yes, the "i2c.scan()" prints 60. |
Hi @mcauser are you still working on this lib? I observed the same error. For me, your library works with SoftI2c but not with hardware I2c. |
Thanks for the feedback. |
Hello Mike,
i am trying to initialize this with HS i2c in RPi Pico, but no success, only on SW...
i have 128x128 display, with SW it works ok, but slow
in samples and documentation i cannot see how to tell in code which i2c pins i am using.
import ssd1327
from machine import I2C, Pin
i2c = I2C(0, scl=Pin(1), sda=Pin(0), freq=400000)
display = ssd1327.SSD1327_I2C(128, 128, i2c)
with this it shows ->
Traceback (most recent call last):
File "", line 4, in
File "ssd1327.py", line 178, in init
File "ssd1327.py", line 78, in init
File "ssd1327.py", line 113, in init_display
File "ssd1327.py", line 186, in write_data
OSError: [Errno 110] ETIMEDOUT
is there error in library, or my code... ?
The text was updated successfully, but these errors were encountered: