Beep Port, Length
Port | Port number (0 to 255) |
Length | Pulse output period (1 to 65535) |
Beep
is used to create a beep sound. A piezo or a speaker can be connected to the specified port. A short beep will be generated. This is useful for creating button-press sound effects or alarm sounds. When this command is used, the specified port is automatically set to output.
BEEP 2, 100 'Output BEEP on P2 for a period of 100