SOUND [TO] frequency [[TIME] seconds]

Command:

SOUND [TO] frequency [[TIME] seconds]

 

Command Syntax:

SET SOUND frequency [[TIME] seconds]

Range:

 

Describe:

SOUND is the on-board speaker and can generate a sound with a specified frequency. If not specified, sound will play for 1 second default.

SET SOUND frequency [[TIME] seconds]

Result:

Play tone through on-board speaker.

Type or
Addressable Component:

Control

On-board SPEAKER Data Sheet

 

TEMPO keyword for SOUND/SPEAKER

Quick way to add repeated beeps
Equivalent to “blink” for SOUND
New optional keyword – TEMPO

SET SOUND 440 TEMPO 2 TIME 2

2 beeps per second for 2 seconds: total 4 beeps
The value for TEMPO can range from 0 to 10

Code
Sample:

SET SOUND 440 TEMPO 2 TIME 5

SET SPEAKER 1 880 TEMPO 3 TIME 4

 

SET SOUND 400 TIME 5 TEMPO 0

is equivalent to

SET SOUND 400 TIME 5

Both commands will play the tone for 5 seconds without any breaks.

 

SOUND OFF/0

Command:

SOUND OFF/0

 

Command Syntax:

SET SOUND 0

 

Range:

 

Describe:

SOUND is the on-board speaker and can generate a sound with a specified frequency. If not specified, sound will play for 1 second default.

SET SOUND 0 – turns off sound on internal speaker immediately.

Result:

Stop playing sound.

Type or
Addressable Component:

Control