Skip to main content

FREQOUT

Syntax

FREQOUT pin, milliseconds, freq1 FREQOUT pin, milliseconds, freq1, freq2

Description

Generate a sine-wave signal on pin for milliseconds. A single frequency or mixed dual frequncy tone may be generated. The IO direction of the pin will be set to output. The output pin might be connected to a speaker or audio amplifier.

Example

'Generate a soothing dual frequency tone on pin 4 for 8 seconds

'using frequncies 2500 and 6000

FREQOUT 4, 8000, 2500, 6000

Differences from other BASICs

  • no equivalen in Visual BASIC
  • none from PBASIC

See also