Skip to main content

vl53l1x distance sensor driver for Raspberry Pi

Project description

# vl53l1x-python

Python library for the VL53L1X Laser Ranger.

# Installing

```
sudo pip install smbus2
sudo pip install vl53l1x
```

# Usage

```python
import VL53L1X

tof = VL53L1X.VL53L1X(i2c_bus=1, i2c_address=0x29)
tof.open() # Initialise the i2c bus and configure the sensor
tof.start_ranging(1) # Start ranging, 1 = Short Range, 2 = Medium Range, 3 = Long Range
distance_in_mm = tof.get_distance() # Grab the range in mm
tof.stop_ranging() # Stop ranging
```

See examples for more advanced usage.

0.0.2
-----

* Improved search for .so file to pick up arch-specific files

0.0.1
-----

* Initial release


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

VL53L1X-0.0.2-cp35-cp35m-linux_armv7l.whl (128.8 kB view hashes)

Uploaded CPython 3.5m

VL53L1X-0.0.2-cp35-cp35m-linux_armv6l.whl (116.7 kB view hashes)

Uploaded CPython 3.5m

VL53L1X-0.0.2-cp34-cp34m-linux_armv7l.whl (128.8 kB view hashes)

Uploaded CPython 3.4m

VL53L1X-0.0.2-cp34-cp34m-linux_armv6l.whl (127.0 kB view hashes)

Uploaded CPython 3.4m

VL53L1X-0.0.2-cp27-none-linux_armv6l.whl (126.8 kB view hashes)

Uploaded CPython 2.7

VL53L1X-0.0.2-cp27-cp27mu-linux_armv7l.whl (128.6 kB view hashes)

Uploaded CPython 2.7mu

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page