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 | ### pulseStop()
Examples |
    void setup() {
      pinMode(0, INPUT);  // sets digital pin 0 as input to connect a switch
      pulseOut(29, 20);    // generates a pulse of 20Hz on PWM output pin 29
    }

    void loop() {
      if(digitalRead(0) == HIGH) {  // if the switch is pressed stop the pulse
        pulseStop(29);
      }
    }
Description | The pulseStop() method stops the pulse generation in the specified PWM output pin 29. If a number of pulses has been specified it stops the pulses even if there is remaining pulses to generate.
Syntax |
    pulseStop(pin)
Parameters |
pin | int: the PWM output pin number to stop generating pulses
Returns | None
Usage | Application
Related | pulseOut() pulseRunning()

Updated on February 09, 2010 07:25:43pm PST