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

Uploaded Source

Built Distribution

tmf882x_driver-0.1.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file tmf882x-driver-0.1.3.tar.gz.

File metadata

  • Download URL: tmf882x-driver-0.1.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for tmf882x-driver-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3ddcc41c006b6007f55861cce6ab49ebb84aac6571c6cc960e1624a7d82900a2
MD5 d77a6a98d97230da525f45b24357f083
BLAKE2b-256 39ea548dc4ca8ee38c34bb8394987d75f9744c081298405b6d279678aed2f45c

See more details on using hashes here.

File details

Details for the file tmf882x_driver-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tmf882x_driver-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a18a681cc26d4a8518730258e6802edeaac7a330137f93b044c033eda831c909
MD5 f5037e2d2046c0eb7c4143a84ab8493e
BLAKE2b-256 030a8f74089ee3f692a66efe45c67635b8309ccb664697d4451acfd8d958ce7e

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