Beep
Beep()
uses any pin to generate a tone.
- Beep(pin, frequency, duration) - creates a tone for a specified duration on any pin
pin: pin number, 'p' used with on-board piezo buzzer
frequency: The frequency in Hz, max value is 10KHz
duration: The duration of the beep in milliseconds, max value is 1000ms
Tip
Beep()
supports the on-board buzzer on BrainPad Pulse, using 'p' in place of the pin number.
Beep(0,256,1000)
Beep('p',256,1000)
Note
This feature is blocking, so the rest of your code will stop until Beep()
is completed.