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.1.tar.gz (124.2 kB view hashes)

Uploaded Source

Built Distribution

VL53L5CX-1.0.1-py3-none-any.whl (131.9 kB view hashes)

Uploaded Python 3

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