sparkfun / SparkFun_VL53L1X_Arduino_Library

A library for the laser based VL53L1X Time Of Flight distance sensor capable of detecting a target 4m away!
MIT License
88 stars 50 forks source link

Activating the sensor XShut at initialization #52

Open HamzaHajeir opened 2 years ago

HamzaHajeir commented 2 years ago

Hi

I've solved a bug in sensor init while xShut pin is defined and wired

The xShut is defaulted to Low state when set to OUTPUT, so an injection of _device->VL53L1_On(); is required at begin() function.