This release is a pre-release and may not be stable for production use.
CounterFit Shims - VL53L0X distance sensor
Shims for the Rpi-VL53L0X distance sensor.
See the Rpi-VL53L0X Docs for the API documentation.
Getting started
To use these shims, you will need to install CounterFit and have it running, with the appropriate hardware created.
-
Install this package from pip:
pip install telegen-shims-rpi-vl53l0x
-
Import VL53L0X using the
counterfit_shims_rpi-vl53l0xpackage instead of therpi-vl53l0xpackage, as well as importing theTeleGenConnectionfrom thecounterfit_connectionmodule:from counterfit_connection import TeleGenConnection from counterfit_shims_rpi_vl53l0x.vl53l0x import VL53L0X
-
Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:
TeleGenConnection.init('127.0.0.1', 5000)
-
Write your VL53L0X code as usual, setting the I2C address to match the one you set in the CounterFit app.
For example, create a distance sensor on port
0x29:distance_sensor = VL53L0X(0x29)
Metadata
Release files for telegen-shims-rpi-vl53l0x 0.1.0.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| telegen_shims_rpi_vl53l0x-0.1.0.dev4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz
| Download URL | telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08330bdfeb39eacf00e279bc94a4755305d26882935f60893402e88db8733670
|
|
BLAKE2b-256 checksum How to use checksums |
d0f37f257cdabd33712fd72934760082abbc094564c239baaf4aa4810595895c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / telegen_shims_rpi_vl53l0x-0.1.0.dev4-py3-none-any.whl
| Download URL | telegen_shims_rpi_vl53l0x-0.1.0.dev4-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daada2de4ab55dd2cfd349e400a8a8c8e90f2e60875028b0e3ed9ba6a3e27edb
|
|
BLAKE2b-256 checksum How to use checksums |
5f1212b361165c60ea4fb98ead33e42ee43b0e6bc76012a8bdab150e697a7259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|