Make noise with a piezo buzzer. Use a digital out pin.
Fork of beep by
This is a simple non blocking library to turn on the pin passed into the constructor for the amount of time specified when calling the beep(float time) function.
I use it to turn on a buzzer but it could be used for anything you need to turn on for a set time.
Revisions of beep.cpp
Revision | Date | Message | Actions |
---|---|---|---|
4:d8e14429a95f | 2012-09-11 | change beep.c to beep.cpp to avoid compiler problems | File Diff Annotate | base |