Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CounterFit Shims - VL53L0X distance sensor

RPI_VL53L0X Shim PyPI

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 the rpi-vl53l0x package, as well as importing the CounterFitConnection from the counterfit_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)
    

Metadata

Release files for counterfit-shims-rpi-vl53l0x 0.1.0.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for counterfit-shims-rpi-vl53l0x 0.1.0.dev3
File Interpreter ABI Platform
counterfit_shims_rpi_vl53l0x-0.1.0.dev3-py3-none-any.whl Python 3 none any Details

Release files / counterfit_shims_rpi_vl53l0x-0.1.0.dev3-py3-none-any.whl

Download URL counterfit_shims_rpi_vl53l0x-0.1.0.dev3-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7c0ca9407c2e9820c5b73606c8fe13b955b92142672ee1426410c035e4062ce
BLAKE2b-256 checksum
How to use checksums
dcea8e8b131d227e0ece635f06b5123aef1aa6ebe51631124c118e90310b7cc7
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page