Skip to content
Discussion options

You must be logged in to vote

It sounds like you are having I2C problems. Maybe you haven't got pull-up resistors on your I2C SCL and SDA lines?
Try this to see if you have communications:

from machine import I2C, Pin
i2c = I2C(0, scl=Pin(9), sda=Pin(8), freq=400000)
i2c.scan()  

This will print the I2C bus addresses of each I2C peripheral found.
You should see at least one number printed out (and it should be the address of your display).
Per the datasheet:
There should also be external pull-ups on the board as the internal pad pull-ups may not be strong enough to pull up external circuits.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@machasm1
Comment options

Answer selected by machasm1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants