Skip to main content

CTypes wrapper for the Sitronix VL53L5CX 8x8 time of flight distance array "ULD" library

Project description

VL53L5CX CTypes Python Wrapper

PyPi Package Python Versions

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:

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

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-ctypes-0.0.3.tar.gz (132.8 kB view details)

Uploaded Source

Built Distribution

vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl (113.1 kB view details)

Uploaded CPython 3.9

File details

Details for the file vl53l5cx-ctypes-0.0.3.tar.gz.

File metadata

  • Download URL: vl53l5cx-ctypes-0.0.3.tar.gz
  • Upload date:
  • Size: 132.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.2

File hashes

Hashes for vl53l5cx-ctypes-0.0.3.tar.gz
Algorithm Hash digest
SHA256 12ba18265230e37c9e78852ade32a50e89bd7fd69e15446bf8d57c9f008933c5
MD5 ed1922e66494a9a9c85b14a8dbd762a7
BLAKE2b-256 620312a6c2b2104df604f424a79efa3fb9bc3cbf84964f5807a9e57a133c31de

See more details on using hashes here.

File details

Details for the file vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl.

File metadata

File hashes

Hashes for vl53l5cx_ctypes-0.0.3-cp39-cp39-linux_armv7l.whl
Algorithm Hash digest
SHA256 75e4ffbf4d0644f84c0b982a2c8538f5e794326a1f2bbdccc7979f728a1b25e1
MD5 a6d83c403fea451c9fed337358fe19ad
BLAKE2b-256 5beb9698bcaaa3f677d84e8f2785acff35b79e0d216c08ab8a61bd47039973e8

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