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 hashes)

Uploaded Source

Built Distribution

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

Uploaded CPython 3.9

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