VL53L5CX CTypes Python Wrapper
CTypes wrapper for the Sitronix VL53L5CX Ultra-light Driver- C source mirror can be found at https://github.com/ST-mirror/VL53L5CX_ULD_driver/tree/lite/en
Prerequisites
You must enable:
- i2c
sudo raspi-config nonint do_i2c 0
If you're not using any i2c devices for which 400KHz is out of range (trackball), you might also want to increase your i2c baud rate.
VL53L5CX requires a firmware upload on startup, and it's slow. Add a baudrate to the i2c line in /boot/config.txt to speed it up:
dtparam=i2c_arm=on,i2c_arm_baudrate=400000
Note: The default baudrate is 200000 (200KHz) and a typical maximum for most devices is 400000 (400KHz), but you can also use 1000000 (1MHz) if you're just driving VL53L5CX sensors.
Installing
- Just run
pip3 install vl53l5cx-ctypes
In some cases you may need to use sudo or install pip with: sudo apt install python3-pip
Latest/development library from GitHub:
- `git clone https://github.com/pimoroni/vl53l5cx-python
cd vl53l5cx-python/librarypython3 setup.py install --user
Changelog
0.0.3
- Rename to vl53l5cx_ctypes to better reflect the differences between this and the pure Python VL53L5CX driver
- Change package name to avoid conflicts with Python VL53L5CX driver
0.0.2
- Fix segfault bug in is_alive
0.0.1
- Initial Release
Metadata
Release files for vl53l5cx-ctypes 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vl53l5cx-ctypes-0.0.3.tar.gz | 132.8 kB | Without provenance | Details for vl53l5cx-ctypes-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl | CPython 3.9 | CPython 3.9 | linux armv7l | Details for vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl |
Total release size: 245.9 kB
Release files / vl53l5cx-ctypes-0.0.3.tar.gz
| Download URL | vl53l5cx-ctypes-0.0.3.tar.gz |
|---|---|
| Size | 132.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12ba18265230e37c9e78852ade32a50e89bd7fd69e15446bf8d57c9f008933c5
|
|
BLAKE2b-256 checksum How to use checksums |
620312a6c2b2104df604f424a79efa3fb9bc3cbf84964f5807a9e57a133c31de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|
Release files / vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl
| Download URL | vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl |
|---|---|
| Size | 113.1 kB |
| Tags | CPython 3.9 linux armv7l |
|
SHA-256 checksum How to use checksums |
75e4ffbf4d0644f84c0b982a2c8538f5e794326a1f2bbdccc7979f728a1b25e1
|
|
BLAKE2b-256 checksum How to use checksums |
5beb9698bcaaa3f677d84e8f2785acff35b79e0d216c08ab8a61bd47039973e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.2
|
Security for vl53l5cx-ctypes 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.