Skip to content
Discussion options

You must be logged in to vote

Please have a look at the example in the documentation: https://docs.micropython.org/en/latest/esp32/quickref.html#hardware-i2c-bus
The template:

i2c = I2C(0)
i2c = I2C(1, scl=Pin(0), sda=Pin(1), freq=400000)

should be right and create output, if the wiring is for GND, 3.3V, SCL at Pin 0, SDA at Pin 1, and pull-up resistors are in place at SDA and SCL.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@A622266
Comment options

@robert-hh
Comment options

Answer selected by A622266
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants