Skip to content

I2C issues on raspberry pi pico micropython scan() works readfrom_mem fails #9983

Discussion options

You must be logged in to vote
from machine import I2C, Pin,SoftI2C
import ustruct
import time
sda = Pin(6)
scl = Pin(7)
i2c = I2C(1, sda = sda, scl = scl, freq=100000)

I had to set the frequency and it started working

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by t43riz
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