Hello @Вадим Белых ,
based on your comments, you are using a USB version of this sensor.
I found this community library with samples:
Vl53L0X vL53L0X = new Vl53L0X(I2cDevice.Create(new I2cConnectionSettings(1, Vl53L0X.DefaultI2cAddress)));
Console.WriteLine($"Rev: {vL53L0X.Information.Revision}, Prod: {vL53L0X.Information.ProductId}, Mod: {vL53L0X.Information.ModuleId}");
while (!Console.KeyAvailable)
{
try
{
Console.WriteLine($"Distance: {vL53L0X.Distance}");
}
catch (Exception ex)
{
Console.WriteLine($"Exception: {ex.Message}");
}
Thread.Sleep(500);
}
Take some time to figure out how the library works and how to tweak it for the best result and good error-catching.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.