Shims for the rpi_vl53l0x library for the CounterFit virtual IoT device app
Project description
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 counterfit-shims-rpi-vl53l0x
-
Import VL53L0X using the
counterfit_shims_rpi-vl53l0x
package instead of therpi-vl53l0x
package, as well as importing theCounterFitConnection
from thecounterfit_connection
module:from counterfit_connection import CounterFitConnection 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:
CounterFitConnection.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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file counterfit_shims_rpi_vl53l0x-0.1.0.dev3-py3-none-any.whl
.
File metadata
- Download URL: counterfit_shims_rpi_vl53l0x-0.1.0.dev3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c0ca9407c2e9820c5b73606c8fe13b955b92142672ee1426410c035e4062ce |
|
MD5 | 851a51ba88297ba768a1742a8f1989e7 |
|
BLAKE2b-256 | dcea8e8b131d227e0ece635f06b5123aef1aa6ebe51631124c118e90310b7cc7 |