beep()

Issues a beep.

Synopsis

int beep([int frequency[, int duration]]);

Parameters

Parameter Meaning
frequency Frequency [Hz]
duration Duration [msec]

Return Value

Always 0

Description

Issues a beep of the frequency <frequency> [Hz] with the duration <duration> [msec]. The beep does not block program execution (own thread). Standard values are 500 for frequency and 200 for duration.

Example

main()
{
  beep(400,250);
// Issues a beep
}

Assignment

Miscellaneous functions

Availability

UI, CTRL, DP