Context
This tool is showcased in the project IotaWorkshop
Summary
This is a beeping utility for the common buzzer. This package comes with a variety of beeps that can be called from a command line inteface or imported from python.
Installation
This package requires RPi.GPIO, which I installed on arch arm using
yay -S python-raspberry-gpio
But ubuntu or rasbian can use,
pip install RPi.GPIO
To install pibeep simply install the pip package.
pip install pibeep
You can then look at the examples on how to run as a cli. You can also import it into your project using,
from pibeep import pulseBeep,beepDuration
beepDuration(pin=12,duration=.33) #beeper on pin 12, on for .33 sec
pulseBeep(pin=12,freq=25,duration=1) #pulse beep at 25HZ for 1 seccond
Beeps
- short: duration 0.05 sec
- medium: duration 0.25 sec
- long: duration 1.00 sec
- warning: pulses 8HZ for 1.5 sec duration
- confirmed: pulses 16HZ for .5 sec duration
- brr: pulses 50HZ for .5 sec duration
Example
The cli can be use any of the listed above beeps in the format as the following commands:
beep warning --pin 12 #Warning sound
beep short --pin 12 #Small beep
beep brr --pin 12 #A rumbling sound
beep confirmed --pin 12 #A sound that conveys success
Usually I need to run it as sudo to have the correct permissions, but it depends on your setup.
Metadata
Release files for pibeep 0.0.1.5
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 |
|---|---|---|---|---|
| pibeep-0.0.1.5.tar.gz | 2.8 kB | Without provenance | Details for pibeep-0.0.1.5.tar.gz |
Release files / pibeep-0.0.1.5.tar.gz
| Download URL | pibeep-0.0.1.5.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d061243f60812f1a5ed0f9e204a86bc6154b154cc1805bbac3b0be769c9cacc6
|
|
BLAKE2b-256 checksum How to use checksums |
4129ad4d62cf3c38c314493c6fca60761a296d163dd855dcd37d60cf32ef863a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for pibeep 0.0.1.5
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.