=====
HX711
=====
.. image:: https://img.shields.io/pypi/v/hx711.svg
:target: https://pypi.python.org/pypi/hx711
.. image:: https://img.shields.io/travis/mpibpc_mroose/hx711.svg
:target: https://travis-ci.org/mpibpc_mroose/hx711
.. image:: https://readthedocs.org/projects/hx711/badge/?version=latest
:target: https://hx711.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/mpibpc_mroose/hx711/shield.svg
:target: https://pyup.io/repos/github/mpibpc_mroose/hx711/
:alt: Updates
This library allows to drive a HX711 on a Raspberry Pi. It just provides the capabilities:
* to set channel an gain and
* to read raw values
**This package requires RPi.GPIO to be installed in Python 3.**
Example implementation:
```
#!/usr/bin/python3
from hx711 import HX711
try:
hx711 = HX711(
dout_pin=5,
pd_sck_pin=6,
channel='A',
gain=64
)
hx711.reset() # Before we start, reset the HX711 (not obligate)
measures = hx711.get_raw_data(num_measures=3)
finally:
GPIO.cleanup() # always do a GPIO cleanup in your scripts!
print("\n".join(measures))
```
* Free software: MIT license
Credits
---------
I used https://github.com/gandalf15/HX711/ as base.
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-11-26)
------------------
* First release on PyPI.
HX711
=====
.. image:: https://img.shields.io/pypi/v/hx711.svg
:target: https://pypi.python.org/pypi/hx711
.. image:: https://img.shields.io/travis/mpibpc_mroose/hx711.svg
:target: https://travis-ci.org/mpibpc_mroose/hx711
.. image:: https://readthedocs.org/projects/hx711/badge/?version=latest
:target: https://hx711.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/mpibpc_mroose/hx711/shield.svg
:target: https://pyup.io/repos/github/mpibpc_mroose/hx711/
:alt: Updates
This library allows to drive a HX711 on a Raspberry Pi. It just provides the capabilities:
* to set channel an gain and
* to read raw values
**This package requires RPi.GPIO to be installed in Python 3.**
Example implementation:
```
#!/usr/bin/python3
from hx711 import HX711
try:
hx711 = HX711(
dout_pin=5,
pd_sck_pin=6,
channel='A',
gain=64
)
hx711.reset() # Before we start, reset the HX711 (not obligate)
measures = hx711.get_raw_data(num_measures=3)
finally:
GPIO.cleanup() # always do a GPIO cleanup in your scripts!
print("\n".join(measures))
```
* Free software: MIT license
Credits
---------
I used https://github.com/gandalf15/HX711/ as base.
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2017-11-26)
------------------
* First release on PyPI.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hx711-1.0.1.tar.gz
(8.6 kB
view details)
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 hx711-1.0.1.tar.gz.
File metadata
- Download URL: hx711-1.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3d13bd9a2e0db873164ee3386a80dbe457a4e409788ea686e85e44747d1352d
|
|
| MD5 |
9894a8c6dee82d033b2476f152230cdb
|
|
| BLAKE2b-256 |
d71de91d213176284342354dc318e63ff6a6ee950972bafe7fb0fb7a71707a86
|
File details
Details for the file hx711-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: hx711-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9af859ec5577982bbb318d9956cab70915721e037544872c6c6dcecc9f096e3
|
|
| MD5 |
cf20b877f76d188f29f3f6bb99c4d5b9
|
|
| BLAKE2b-256 |
8117ca2ddaaa5ce5e2dc8fb20d036e7db843ec6a3a0101b81a0351b3dea0c809
|