noTone()

Description

Stops the generation of a square wave triggered by tone(). Has no effect if no tone is being generated.

Syntax

noTone(pin)

Parameter Values

  • pin: the Arduino pin on which to stop generating the tone

Return Values

  • Nothing

※ NOTES AND WARNINGS:

If you want to play different pitches on multiple pins, you need to call noTone() on one pin before calling tone() on the next pin.

See Also

Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.