Index
 
  Reference for Wiring 1.0 (ALPHA) 0017+. 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  

pulseRunning()

   
Examples  
 
void setup() { 
  Serial.begin(9600); 
  pulseOut(3, 10, 1000); // generates 1000 pulses of 10Hz on PWM output pin 3 
} 
 
void loop() { 
  if(pulseRunning(3) == 0) {  // if the 1000 pulses were generated print done! 
    Serial.print("done!"); 
  } 
} 
 
 

Description   The pulseRunning() method returns the number of remaining pulses to be generated on a pin.

pulseRunning() 메소드는 핀에서 만들어진 펄스의 나머지 수를 반환합니다.

   
Syntax  
pulseRunning(pin)
   
Parameters  
pin   int: the PWM output pin number in which the pulses are being generated

펄스가 발생하는 PWM 출력 핀 번호

   
Returns   int: the number of pulses remaining to be generated

발생하고 남은 펄스 수

   
Usage   Application
   
Related   pulseOut()
pulseStop()