
PT-20 Programming Guide
Buzzer
To see whether a beeper sequence is under going or not.
The beeper_status function checks if there is a beeper sequence in
progress.
1 if beeper sequence still in progress, 0 otherwise
Terminate beeper sequence.
The off_beeper function terminates beeper sequence immediately if there
is a beeper sequence in progress.
Assign a beeper sequence to instruct beeper action.
void on_beeper(int *sequence);
int beep_twice[50] = {30,10,0,10,30,10,0,0};
on_beeper(beep_twice);
A beep frequency is an integer used to specify the frequency (tone) when
the beeper activates. The actual frequency that the beeper activates is
not the value specified to the beep frequency. It is calculated by the
following formula.
Beep Frequency = 76000 / Actual Frequency Desired
For instance, to get a frequency of 2000Hz, the value of beep frequency
should be 38. If no sound is desired (pause), the beep frequency should
beset to 0. A beep with frequency 0 does not terminate the beeper
sequence. Suitable frequency for the beeper ranges from 1 to 2700Hz,
where peak
at 2000Hz.
The on_beeper function has no return value.
Kommentare zu diesen Handbüchern