Skip to main content

Python driver for the AMS TMF8820/TMF8821 dToF imager

Project description

tmf882x-driver

Easy-to-use python driver for the AMS TMF8820 and TMF8821 ToF sensors

GitHub Workflow Status PyPI PyPI - License PyPI - Downloads

Installation

The package is available on PyPI. Installation is can be done with your favourite package manager. For example:

pip install tmf882x-driver

Usage

In order to initialise the device we need an open SMBus object. Depending on the machine that you are running on you may need to provide another bus number or path:

from smbus2 import SMBus
from tmf882x import TMF882x


with SMBus(1) as bus:
    device = TMF882x(bus=bus)

The address of the TMF882x defaults to 0x41. If your device's address is different, you can provide it like TMF882x(bus=bus, address=0x59).

See the datasheet for more details.

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

tmf882x-driver-0.1.3.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

tmf882x_driver-0.1.3-py3-none-any.whl (9.1 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