Stops the generation of a square wave triggered by tone(). Has no effect if no tone is being generated.
- pin: the Arduino pin on which to stop generating the tone
Let's to play "Jingle Bells" song with Arduino.
|1||×||Arduino UNO or Genuino UNO|
Image is developed using Fritzing. Click to enlarge image
For more detailed instruction, see Arduino - Piezo Buzzer
※ 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.