ilyasmirnow @ilyasmirnow
Joined over 4 years ago
GMR
# Untitled - By: HP - Ср мар 2 2022
import sensor, image, time
from pyb import I2C
from vl53loxlib import VL53L0X
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
i2c = I2C(2, I2C.MASTER)
print(i2c.scan());
sens = VL53L0X(i2c)
sens.start()
while(True):
print(sens.read())
img = sensor.snapshot()

This user hasn't posted anything yet.