from machine import Pin, I2C
SDA = Pin(21, pull=Pin.PULL_UP)
SCL = Pin(22, mode=Pin.OUT, pull=Pin.PULL_UP)
i2c = I2C(1,scl=SCL, sda=SDA, freq=100000)
for i in range(3):
print(i2c.scan())
from machine import Pin, I2C
SDA = Pin(21, pull=Pin.PULL_UP)
SCL = Pin(22, mode=Pin.OUT, pull=Pin.PULL_UP)
i2c = I2C(1,scl=SCL, sda=SDA, freq=100000)
for i in range(3):
print(i2c.scan())