Skip to main content

Simple utilities for generically using GPIO/I2C RPI sensors.

Project description

SensorKit

Work in Progress

Simple abstraction for I2C bus devices.

Installation

Some devices do not respond to the scan method used in microcontroller/generic_linux. See Issue 365.

For this library to discover devices microcontroller/generic_linux/i2c.py needs to be patched with either patches/i2c-read-or-write.patch (re-implementation of i2cdetect scan algorithm) or i2c-write.patch (replace read_byte with write_quick for all addresses).

pip install sensorkit --upgrade

Usage

[WIP]

from sensorkit import SensorKit

kit = SensorKit(board.I2C(), config)
kit.run()

for m in kit.tree.meters_iter:
    print m.measure

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

sensorkit-0.2.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sensorkit-0.2.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file sensorkit-0.2.0.tar.gz.

File metadata

  • Download URL: sensorkit-0.2.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for sensorkit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0419d25b676815415effeb0b6498a13fea60130bf4e2910ca1a0b01bc143487
MD5 f5288abe0db5460b3913680e61f4b58e
BLAKE2b-256 23641557d8f37e28f0dfaeedefdf2070849d9d3be2f4dc0569cb63ea4cd70769

See more details on using hashes here.

File details

Details for the file sensorkit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sensorkit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for sensorkit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 573bed05f29d35332923aaae784a1f52784a32a28382a8bf57fe9047130e2e1e
MD5 12bd4868c66cd49918519881f5203248
BLAKE2b-256 f0b55a9ea3d41a5e58ad8b5bd1e72a1252ce3b85f94cf0b0bb2c7515cf0bd8c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page