Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### noTone()
Examples |
    void setup() {
      pinMode(0, INPUT);  // sets digital pin 0 as input to connect a switch
      tone(3, 400, -1);  // generates a tone of 400Hz on output pin 3 with infinite duration

    }

    void loop() {
      if(digitalRead(0) == HIGH) {  // if the switch is pressed stop the tone on pin 3
        noTone(3);
      }
    }
Description | The noTone() method stops the tone generation in the specified output pin.
Syntax |
    noTone(pin)
Parameters |
pin | int: the output pin number to stop generating tone
Returns | None
Usage | Application
Related | tone()

Updated on January 26, 2010 11:24:27pm PST