vl53l1x-python
Python library for the VL53L1X Laser Ranger.
https://shop.pimoroni.com/products/vl53l1x-breakout
Installing
sudo pip install smbus2
sudo pip install vl53l1x
Usage
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.4
- Enhancement: support for tca9548a, for #13
- Enhancement: support for i2c address change, for #14
- Enhancement: support for setting timing budget, for #16
- Synced API code with latest release from ST
0.0.3
- Fix: Use i2c_bus param for use with alternate buses/soft i2c
0.0.2
- Improved search for .so file to pick up arch-specific files
0.0.1
- Initial release
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
VL53L1X-0.0.4.tar.gz
(178.5 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file VL53L1X-0.0.4.tar.gz.
File metadata
- Download URL: VL53L1X-0.0.4.tar.gz
- Upload date:
- Size: 178.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e48a257aeb2ccce7f09a1b27d49b25c316c736c827da92efef3dd752bfbb6c
|
|
| MD5 |
1d80316645495a53e24474e2368caed2
|
|
| BLAKE2b-256 |
f834b46ca51e9b21c8147ab4018c2472918ee6c53a4e609f383cef5981061981
|
File details
Details for the file VL53L1X-0.0.4-cp37-cp37m-linux_armv7l.whl.
File metadata
- Download URL: VL53L1X-0.0.4-cp37-cp37m-linux_armv7l.whl
- Upload date:
- Size: 291.8 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d961f213bcd61697600a117148e2a9e95e04596412644788382dcee8e9fbbf9
|
|
| MD5 |
95f2108ebcb5276229b46aca55f38c27
|
|
| BLAKE2b-256 |
27cb77f924ac158c70c49420743fdd3053c8d8c4d169fd7adc3626341bbe37f3
|
File details
Details for the file VL53L1X-0.0.4-cp27-cp27mu-linux_armv7l.whl.
File metadata
- Download URL: VL53L1X-0.0.4-cp27-cp27mu-linux_armv7l.whl
- Upload date:
- Size: 148.0 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a09ac65c07fbf53046c521d34cd0dc87aab70977a03c65db9ad958ba28f48da5
|
|
| MD5 |
73a38e982c471a43441cf8d47a2d493c
|
|
| BLAKE2b-256 |
22ea260077cb73a6827db7249b5015d799c52395b69ac3123420394d9ee16926
|