Simple utilities for generically using GPIO/I2C RPI sensors.
Project description
SensorKit
Work in Progress
Simple abstraction for I2C bus devices.
Installation
- Install adafruit-blinka. Since I2C may need to be enabled on your device you may prefer to install blinka separately to ensure its setup success. See CircuitPython Libraries on Linux and Raspberry Pi.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sensorkit-0.2.3.tar.gz.
File metadata
- Download URL: sensorkit-0.2.3.tar.gz
- Upload date:
- Size: 13.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b09520a387f0d85f7fd5c04daa30a4d6c3f857a0fcd22f4ca23556d4af2fcf25
|
|
| MD5 |
71bdae1699560cfe7a36ed5d65e6ea91
|
|
| BLAKE2b-256 |
ae805faa48cb1378c35a9489d26b74590f1e835d4bbe42bd5217040c860ae10b
|
File details
Details for the file sensorkit-0.2.3-py3-none-any.whl.
File metadata
- Download URL: sensorkit-0.2.3-py3-none-any.whl
- Upload date:
- Size: 18.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c15238ac2dd1a73ec1c3e1c0cff061aa4ec72e128493eff19f6b782295bf2371
|
|
| MD5 |
cc99a36c10d551fad8b0523d487add9c
|
|
| BLAKE2b-256 |
7b4bb9f0f3e57fd805e3c98588485aa4e5c3807ad42cd2ff57b84f68ef65a57f
|