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.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

tmf882x_driver-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tmf882x-driver-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 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.0.tar.gz
Algorithm Hash digest
SHA256 ce1f24c3852e6b2aaef7dd90e219969e0d9a98b087d256a10228d3742e8292a8
MD5 2c580ca4e0fe0184afd719552e7d4bdc
BLAKE2b-256 7ddf2b8954932e5e30208b6a131803a1d47055daf4926e19157459b371c09bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tmf882x_driver-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30f272cdd26dce64aae5dbbdc65162180929f466e747e5e1d6f465065251e12
MD5 59f24c66fd09c036371aa616bb50379d
BLAKE2b-256 e5d0ecd48ffda7c3113794a6cf868b3c5dbaf2738b4d57d1c64472ee306b3a29

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