Synapse SNAPpy library for HX711 Load Cell Amplifier/ADC
snappy-hx711 is a SNAPpy library that reads values from the HX711 24-bit ADC with amplifier designed to measure load cells.
Installation
For use in Portal
Download and extract the latest release zip file to Portal’s snappyImages directory. By default, this is located at ...\Documents\Portal\snappyImages on Windows.
For use with SNAPbuild/SNAPtoolbelt
The easiest way to install snappy-hx711 for use with SNAPbuild or SNAPtoolbelt is using pip:
pip install snappy-hx711
Alternatively you can download the source, extract it, and install it:
python setup.py install
Usage
To use the snappy-hx711 library functions, first import the library and call hx711_begin() with the pin numbers connected to the HX711. Then you can start taking measurements:
from snappy_hx711 import *
CLOCK_PIN = 6
DATA_PIN = 7
@setHook(HOOK_INIT)
def init():
# Must be called before making measurements:
hx711_begin(CLOCK_PIN, DATA_PIN)
def take_a_measurement():
# Returns a 3-byte string:
return hx711_read()
Metadata
Release files for snappy-hx711 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snappy-hx711-1.0.0.tar.gz | 2.7 kB | Without provenance | Details for snappy-hx711-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snappy_hx711-1.0.0-py2-none-any.whl | Python 2 | none | any | Details for snappy_hx711-1.0.0-py2-none-any.whl |
Total release size: 5.9 kB
Release files / snappy-hx711-1.0.0.tar.gz
| Download URL | snappy-hx711-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fe5e82bd6cf1b793c14b287fd93003885fe65c58f6c1f9012e2f3a0353c5279
|
|
BLAKE2b-256 checksum How to use checksums |
5670e7cb25f41820cde4617c99d7eba9d364eb5e661338d6716bf5ed816d24d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Release files / snappy_hx711-1.0.0-py2-none-any.whl
| Download URL | snappy_hx711-1.0.0-py2-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c5c3b80767ea15ebb82baf9e9dc18104444ce5f23a6d9a495a28ac7a87114602
|
|
BLAKE2b-256 checksum How to use checksums |
b5e21c1de8ad156aa026753ccc3f01cd80dd1029821daf1c2eeb212e2234fbf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Security for snappy-hx711 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.