w1 lib using the sysfs interface
Project description
w1-sysfs
One Wire protocol library using the sysfs interface
Compatibility
Now comptatible with all Python 3 versions.
Install
pip install onion-w1-sysfs
Usage
OneWire# python
Python 3.6.9 (default, Dec 06 2019, 16:28:06)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from OneWire import OneWire
>>> w1 = OneWire(0)
>>> w1.read_device()
['85 01 4b 46 7f ff 0c 10 31 : crc=31 YES\n', '85 01 4b 46 7f ff 0c 10 31 t=24312\n']
>>> w1.read_device()[1].split('=')[1].rstrip()
'24312'
>>>
Author
PyPi package by https://github.com/grizmin
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
onion_w1_sysfs-0.1.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for onion_w1_sysfs-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1122fc6c7f59f66a573a7e4e6e8a5c66cd33d00276eb987de01b257ada34d1c |
|
MD5 | d3d8fd3fe0942de9e90255b59f5fe2cf |
|
BLAKE2b-256 | 1f4ce00362c7638f43ef90ee23c71cfb08254d59c7d773ffb3be368913689fe6 |