.Buzz( )

back to FEHBuzzer

Description

This function causes the buzzer to beep for a user-specified amount of time at a frequency of 1000Hz. If a parameter is omitted then the buzzer will buzz indefinitely.

Syntax

.Buzz()

.Buzz( int milliseconds )

.Buzz( float seconds )

Parameters

milliseconds: an integer that specifies the number of milliseconds to buzz for.

seconds: a floating-point value that specifies the number of seconds to buzz for.

Returns

None.

Examples

#include <FEHBuzzer.h>

int main(void)
{
    //buzz forever
    Buzzer.Buzz();
}