Skip to main content

Shims for the rpi_vl53l0x library for the CounterFit virtual IoT device app

Project description

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 telegen-shims-rpi-vl53l0x
    
  • Import VL53L0X using the counterfit_shims_rpi-vl53l0x package instead of the rpi-vl53l0x package, as well as importing the TeleGenConnection from the counterfit_connection module:

    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)
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz.

File metadata

File hashes

Hashes for telegen_shims_rpi_vl53l0x-0.1.0.dev4.tar.gz
Algorithm Hash digest
SHA256 08330bdfeb39eacf00e279bc94a4755305d26882935f60893402e88db8733670
MD5 88eda7cfb996ed6c986ec803a5b23e1a
BLAKE2b-256 d0f37f257cdabd33712fd72934760082abbc094564c239baaf4aa4810595895c

See more details on using hashes here.

File details

Details for the file telegen_shims_rpi_vl53l0x-0.1.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for telegen_shims_rpi_vl53l0x-0.1.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 daada2de4ab55dd2cfd349e400a8a8c8e90f2e60875028b0e3ed9ba6a3e27edb
MD5 e9d736cddd433dd7f32a19947442e6f7
BLAKE2b-256 5f1212b361165c60ea4fb98ead33e42ee43b0e6bc76012a8bdab150e697a7259

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page