Reference for Wiring version 0027+ If you have a previous version, use the reference includede with your software. If 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 22, 2011 06:14:41pm PST

Creative Commons License