例程讲解30-Distance-Shield -> distance_read 读取距离

视频教程33 - ToF光学测距:https://singtown.com/learn/50539/

from machine import I2C
from vl53l1x import VL53L1X
import time

i2c = I2C(2)
distance = VL53L1X(i2c)

while True:
    print("range: mm ", distance.read())
    time.sleep_ms(50)

results matching ""

    No results matching ""