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.4.3.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.4.3-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sensorkit-0.4.3.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.2 Linux/6.6.62+rpt-rpi-2712

File hashes

Hashes for sensorkit-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c0b714f4ca1c7792911c0313916bff428f80b3565f7b1ea2e99420f93228c9c8
MD5 8db73e15af265879781bb0b290ec4f7e
BLAKE2b-256 8838d9f4a8653064effeb902c64de7bb048e6cc0d5000931553afa4cb203db2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sensorkit-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.2 Linux/6.6.62+rpt-rpi-2712

File hashes

Hashes for sensorkit-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 625f53a41c7e132ef4c327d305cd762cbba5897f06c3332219d804c61291dd14
MD5 dbed11de402255c95190cf1333530809
BLAKE2b-256 597ca7dcf72c96c1d4dff85ef01afdfb3c954b9359c29fb138f912c00265d627

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