pi_hcsr501
Library for playing around with hcsr501 PIR motion sensor with Raspberry Pi.
Usage
from pi_hcsr501 import HcSr501
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
Release files for pi-hcsr501 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pi_hcsr501-0.5.1.tar.gz | 1.5 kB | Details |
Release files / pi_hcsr501-0.5.1.tar.gz
| Download URL | pi_hcsr501-0.5.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2a06cb54b610de1529bbb8e33ad972da213fc0ea861ff85879e4c5c029b5dca
|
|
BLAKE2b-256 checksum How to use checksums |
ed97934114340f785c6af64cc63e2eafe6250683e7cfe9f821aebc16f88889d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |