一般情况是连接i2c(2),但是同样是i2c总线,为什么i2c(4)口就不行呢
I2C(4) is on the Y position: (SCL, SDA) = (P7, P8) = (PD12, PD13)
from machine import I2C
from vl53l1x import VL53L1X
from pyb import Pin
import time
i2c4 = I2C(4)
distance1 = VL53L1X(i2c4)
while True:
print("range2: mm ", distance1.read())
time.sleep(50)