I'm trying to figure out which pins are available for the I2C with the help of the following script
Code: Select all
>>> import machine
>>> i2c=machine.I2C(sda=machine.Pin(25), scl=machine.Pin(23), freq=100000)
D (6073) intr_alloc: Connected src 49 to int 9 (cpu 1)
>>> i2c.scan()
[]
If I change I2C pins to G15 and G2 I will find in I2C bus my two devices.
Code: Select all
>>> import machine
>>> i2c=machine.I2C(sda=machine.Pin(15), scl=machine.Pin(2), freq=100000)
D (7337) intr_alloc: Connected src 49 to int 9 (cpu 1)
>>> i2c.scan()
[35, 119]
Thank you in advance.
P.S. Yes, I connected pull-up registers between VCC (+5v) and SDA and SCL.