Skip to main content

Python native implementation of VL53L5CX ultra light driver code

Project description

Driver for VL53L5CX in Python

Python transliteration of VL53L5CX ultra lite driver from C to Python. More precisely, it is implementation from this github repository: https://github.com/thingswebuilt/VL53L5CX/tree/minimal_mods_for_pi

(Thanks Mark for cracking i2c data size and addressing of chunks for Raspberry Pi)

Note: Current implementation is tested on Raspberry Pi with SMBus2 for i2c communication, but in theory it should work on any system that implements SMBus2.

I tried to preserve as much original comments in the code as well.

Examples

Currently there is only one example for simple ranging. To run it on Raspberry Pi:

PYTHONPATH=`pwd` python3 examples/simple_ranging_example.py

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

VL53L5CX-1.0.0.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

VL53L5CX-1.0.0-py3-none-any.whl (131.9 kB view details)

Uploaded Python 3

File details

Details for the file VL53L5CX-1.0.0.tar.gz.

File metadata

  • Download URL: VL53L5CX-1.0.0.tar.gz
  • Upload date:
  • Size: 124.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for VL53L5CX-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fc63bc1f1ad84a8e8517071a6027105846e8abfc765149df6ee54e71219d4b55
MD5 f28f8d0825c7b8201c40fe300b969aea
BLAKE2b-256 35c086d536c35ac67fb71b0f8dec66f2551a620f9c439c8d685b50ce2c23254a

See more details on using hashes here.

File details

Details for the file VL53L5CX-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: VL53L5CX-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 131.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for VL53L5CX-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46e5467b9edc540f398fb89eaa7988edfed406aff16c17f364dc1a90f910c07c
MD5 6520c20e3f3ef8255b9786a6b197edf5
BLAKE2b-256 aa066af6e3f1ab5a9085b03ce4ced446e61bf28d4f905287a7a46713ca1a423d

See more details on using hashes here.

Supported by

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