4 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Revised Python library for the VL53L1X Laser Ranger.
# Installing
```
sudo pip3 install smbus2
sudo pip3 install VL53L1X2
```
# 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 and tests for more advanced usage.
0.1.2
-----
* @josemotta ported it to python 3.6 as part of a homeassistant component.
Please see basic sample:
from homeassistant.const import TEMP_CELSIUS
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['smbus2==0.2.2', 'VL53L1X2==0.1.2']
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the sensor platform."""
add_devices([TofSensor()])
class TofSensor(Entity):
"""Representation of a Sensor."""
def __init__(self):
"""Initialize the sensor."""
self._state = None
@property
def name(self):
"""Return the name of the sensor."""
return 'VL53L1X'
@property
def state(self):
"""Return the state of the sensor."""
return self._state
@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return TEMP_CELSIUS
def update(self):
"""Fetch new state data for the sensor.
This is the only method that should fetch new data for Home Assistant.
"""
self._state = 23
0.0.3
-----
* @NagyAttila upgrade focusing on working with more than 1 range sensors, also changed quit a lot to make it bit more robust.
0.0.2
-----
* Improved search for .so file to pick up arch-specific files.
0.0.1
-----
* Initial release.
Release files for VL53L1X2 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
4 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| VL53L1X2-0.1.5.tar.gz | 80.3 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| VL53L1X2-0.1.5-cp37-cp37m-linux_armv7l.whl | CPython 3.7 | CPython 3.7 pymalloc | linux armv7l | Details |
| VL53L1X2-0.1.5-cp37-cp37m-linux_armv6l.whl | CPython 3.7 | CPython 3.7 pymalloc | linux armv6l | Details |
| VL53L1X2-0.1.5-cp36-cp36m-linux_armv7l.whl | CPython 3.6 | CPython 3.6 pymalloc | linux armv7l | Details |
| VL53L1X2-0.1.5-cp36-cp36m-linux_armv6l.whl | CPython 3.6 | CPython 3.6 pymalloc | linux armv6l | Details |
| VL53L1X2-0.1.5-cp35-cp35m-linux_armv7l.whl | CPython 3.5 | CPython 3.5 pymalloc | linux armv7l | Details |
| VL53L1X2-0.1.5-cp35-cp35m-linux_armv6l.whl | CPython 3.5 | CPython 3.5 pymalloc | linux armv6l | Details |
Total release size: 817.0 kB
Release files / VL53L1X2-0.1.5.tar.gz
| Download URL | VL53L1X2-0.1.5.tar.gz |
|---|---|
| Size | 80.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01e0abee2a81742874726bd82001d20c6a282b021250f64f1ce4ab1be507e896
|
|
BLAKE2b-256 checksum How to use checksums |
603c561d51963f74d1cdfb47449850b47461710b5c573ef2029a270f0e3b0caf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.5.3
|
Release files / VL53L1X2-0.1.5-cp37-cp37m-linux_armv7l.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | VL53L1X2-0.1.5-cp37-cp37m-linux_armv7l.whl |
|---|---|
| Size | 118.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc linux armv7l |
|
SHA-256 checksum How to use checksums |
9b906f7aeec80c4680a175b715ff8781d45ea5ec2fff292a4c3be2d289a1de54
|
|
BLAKE2b-256 checksum How to use checksums |
cb972be4defa74e0ccc450c0a484f3fc3d308694bced3a14f870d2d1daf66abe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / VL53L1X2-0.1.5-cp37-cp37m-linux_armv6l.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | VL53L1X2-0.1.5-cp37-cp37m-linux_armv6l.whl |
|---|---|
| Size | 118.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc linux armv6l |
|
SHA-256 checksum How to use checksums |
1376b2686200fdb549ce1f38f5a99e986279926de22211a8dd08d423e4685664
|
|
BLAKE2b-256 checksum How to use checksums |
52c46704c180c1008d0f66beef14c5942ab8165f748b51a665e7ffc9acb2bffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / VL53L1X2-0.1.5-cp36-cp36m-linux_armv7l.whl
| Download URL | VL53L1X2-0.1.5-cp36-cp36m-linux_armv7l.whl |
|---|---|
| Size | 120.0 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc linux armv7l |
|
SHA-256 checksum How to use checksums |
6fb449c67f3f1920b3ef8c9ae14b47856f86bd04dffd6ed616c66727302a96bd
|
|
BLAKE2b-256 checksum How to use checksums |
5ef455016e3dc793482e6afb7d1e935544f1ebe880abba59b9a16bff66413420
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.5.3
|
Release files / VL53L1X2-0.1.5-cp36-cp36m-linux_armv6l.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | VL53L1X2-0.1.5-cp36-cp36m-linux_armv6l.whl |
|---|---|
| Size | 118.1 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc linux armv6l |
|
SHA-256 checksum How to use checksums |
0057691d54149cfaa32acf38d5a9e998e3cc58fa9af105bbed520773a8160768
|
|
BLAKE2b-256 checksum How to use checksums |
023ff0816c13ed32de49de8b4bd7954252440680e4be9e9768f3dfb8246af5a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.5
|
Release files / VL53L1X2-0.1.5-cp35-cp35m-linux_armv7l.whl
| Download URL | VL53L1X2-0.1.5-cp35-cp35m-linux_armv7l.whl |
|---|---|
| Size | 131.3 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc linux armv7l |
|
SHA-256 checksum How to use checksums |
cc1c814e055feadac64d003f7e3f38306779b27a37939f350096065bdf285d02
|
|
BLAKE2b-256 checksum How to use checksums |
fea499b6e672da204d51ce34aa4b641d810d774baca9e1aae9178f312e0ede09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.5.3
|
Release files / VL53L1X2-0.1.5-cp35-cp35m-linux_armv6l.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | VL53L1X2-0.1.5-cp35-cp35m-linux_armv6l.whl |
|---|---|
| Size | 131.3 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc linux armv6l |
|
SHA-256 checksum How to use checksums |
7bc227d0285ae4ae25c62235e17d0d88fc46c67acfe680d807d1aac13f1e4ec1
|
|
BLAKE2b-256 checksum How to use checksums |
3db6f93ea01d421fbd7ed285329c4c77483d5cd1f472c78659120fcb3c382f8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.5
|