Reference.EsploraTone History

Show minor edits - Show changes to markup

December 07, 2012, at 11:02 PM by Scott Fitzgerald -
December 07, 2012, at 10:56 PM by Scott Fitzgerald -
Changed lines 6-7 from:

Generates a square wave of the specified frequency from the Esplora's onboard buzzer. A duration can be specified in milliseconds, otherwise the wave continues until a call to Esplora.noTone().

to:

Generates a square wave of the specified frequency from the Esplora's onboard buzzer. A duration can be specified in milliseconds, otherwise the wave continues until a call to Esplora.noTone().

Changed line 24 from:
to:
December 07, 2012, at 10:56 PM by Scott Fitzgerald -
Added lines 1-29:

Esplora

tone()

Description

Generates a square wave of the specified frequency from the Esplora's onboard buzzer. A duration can be specified in milliseconds, otherwise the wave continues until a call to Esplora.noTone().

Only one tone can be generated at a time. If a tone is already playing, the call will set its frequency.

Use of the tone() function will interfere with fading the red LED.

Syntax

Esplora.tone(frequency, duration)

Parameters

frequency: the frequency of the tone in hertz - unsigned int

duration: the duration of the tone in milliseconds (optional) - unsigned long

Returns

nothing

See also

Share