Merge pull request #496 from kidswong999/patch-5

distance shield example
This commit is contained in:
Ibrahim Abd Elkader 2019-03-29 17:54:39 +02:00 committed by GitHub
commit 5fc022718b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
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(50)