Skip to main content

Buzzer utility for pi

Project description

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

To install simply install the pip package.

pip install beep

You can then look at the examples on how to run as a cli. You can also import it into your project using,

from beep 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.py warning --pin 12
beep.py short --pin 12
beep.py brr --pin 12

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pibeep-0.0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file pibeep-0.0.1.1.tar.gz.

File metadata

  • Download URL: pibeep-0.0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pibeep-0.0.1.1.tar.gz
Algorithm Hash digest
SHA256 37a42a57be89d7124a2aacd0f98d44916636c72c45ba3f908758aa6d5fc4b5a0
MD5 40a6077e02a03f84466f4cb9e3f96a6d
BLAKE2b-256 b0f1aee5a3554aec388861f0d189af5dd32474f2c022e80d9356a95ebd48dcef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page