pi_hcsr501
Library for playing around with pi_hcsr501 PIR motion sensor with Raspberry Pi.
Usage
HCSR501 = HcSr501()
while True:
print(str(HCSR501.active) + " ", end="\r")
sleep(0.5)
Testing
Run unit tests with command:
cd pi_hcsr501
python3 -m unittest discover -s tst/
Get test coverage with commands:
cd pi_hcsr501
coverage run -m unittest discover -s tst/
coverage report -m
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pi_hcsr501-0.5.0.tar.gz
(1.5 kB
view details)
File details
Details for the file pi_hcsr501-0.5.0.tar.gz.
File metadata
- Download URL: pi_hcsr501-0.5.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89eb3b80d9e1b05b523edac1eb42e34a93000fd7830a131ec1422383f1e9e82f
|
|
| MD5 |
298b668a59d5801139c8eeff0f353926
|
|
| BLAKE2b-256 |
c17d35475e8c86f7d2ee956778bb1c20be53f391b2cdaf97139f7a17f7d803b6
|