Buzzer Commands - CipherLab 8 Series User Manual

Hide thumbs Also See for 8 Series:
Table of Contents

Advertisement

CipherLab BASIC Programming

4.10 BUZZER COMMANDS

This section describes the commands related to the buzzer or speaker.
Note: 8200 is equipped with a speaker instead of a buzzer.
BEEP
Purpose
To specify a beep sequence of how a buzzer works.
Syntax
BEEP(freq%, duration% {, freq%, duration%})
Remarks
"freq%" is an integer variable, indicating the value of beep frequency (Hz).
which is specified in units of 10 milliseconds.
Example
BcrData_1:
BEEP(2000, 10, 0, 10, 2000, 10)
BEEP(-2, 1)
102
Part I
Value
Meaning
freq% ≧ 0
Suggested frequency for the buzzer ranges from 1 kHz to
6 kHz. If the value of the frequency is 0, the buzzer will
not sound during the time duration.
freq% = -1
For 8400, the buzzer volume can be configured by setting
freq% to "-1" and duration% to 1~3.
For 8200, the buzzer volume can be configured by setting
freq% to "-1" and duration% to 0~3.
duration%
0
1
2
3
freq% = -2
For 8200, a .wav file on SD card can be specified by
setting freq% to "-2" and duration% to file number. See
the example below.
"duration%" is an integer variable, indicating the value of beep duration,
Up to eight frequency-duration pairs can be assigned in a beep sequence.
ON READER(1) GOSUB BcrDATA_1
...
BEEP(-1, 1)
...
RETURN
Buzzer Volume
Set the volume level to "Mute"
Set the volume level to "Low"
Set the volume level to "Medium"
Set the volume level to "High"
' Set Low
' Play A:\WAV\1.wav

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 8 Series and is the answer not in the manual?

This manual is also suitable for:

83008000840087008200

Table of Contents