Replies: 2 comments 10 replies
-
Try other pins than GPIO0 and GPIO1. GPIO1 is used for the Serial communication to your PC. |
Beta Was this translation helpful? Give feedback.
1 reply
-
`>>> from umachine import Pin, SoftI2C
This is the code I'm trying to use |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I step though the following code:
from umachine import Pin, SoftI2C
i2c=SoftI2C(scl=Pin(0), sda=Pin(1), freq=400000)
i2c.scan()
i2c.writeto_mem(0x45, 0x00, b'\x00')
which should set the device into digital input mode but if I issues an i2c.read, I get ERRNO 19, the I2c bus locks up and I have to power down the ESP32-C3 to access the i2c bus again.
can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions