Reference.EsploraTone History

Hide minor edits - Show changes to output

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 [[EsploraNoTone | 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 [[/Reference/EsploraNoTone | Esplora.noTone]]().
Changed line 24 from:
* [[EsploraNoTone | Esplora.noTone]]()
to:
* [[Reference/EsploraNoTone | Esplora.noTone]]()
December 07, 2012, at 10:56 PM by Scott Fitzgerald -
Added lines 1-29:
[[EsploraLibrary | 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 [[EsploraNoTone | 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
* [[EsploraNoTone | Esplora.noTone]]()
* [[tone]]()
* [[noTone]]()
* [[analogWrite]]()

Share