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.5.0.tar.gz (15.0 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.5.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sensorkit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 53f371727be4a4368c7b6236c0278db4343ad6c505f8d1c4c4536d26c46a27f0
MD5 fcad45a82986b74a9a9fa651d9bd7dd6
BLAKE2b-256 e6e58aa00a1e4ae092186ff336ccacc106961d718bc8e4a4563ed45352a1e174

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sensorkit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 011969b15c1f98531bef6e35e6065510ba1035088647d5d3e38aabfe618637f7
MD5 b585468f79fa15088181606743f09b5e
BLAKE2b-256 74d4d714025434525c064a54a6ac49d513199b4879b8ae5213a04f3c0321e503

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