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  

pulseOut()

   
Examples  
 
void setup() { 
  pulseOut(3, 10); // generates an infinite pulse of 10Hz on PWM output pin 3 
} 
 
void loop() { 
 
} 
 

Description   The pulseOut() generate a pulse of a determined frequency in hertz on a specific pin. Since the pulseOut command uses timer1 to generate the pulses accurately the pins available for pulse generation are PWM output pins 3, 4 and 5.

pulseOut() 은 지정한 핀에 지정한 주파수의 펄스가 출력되도록 합니다. pulseOut 커맨드는 timer1을 사용하여 PWM 출력핀 3, 4, 5 에 정확한 펄스를 발생합니다.

   
Syntax  
pulseOut(pin, frequency)
pulseOut(pin, frequency, nPulses)
   
Parameters  
pin   int the PWM output pin number in which the pulse will be generated. It can only be on 3, 4 or 5 PWM output pins

펄스가 발생할 PWM 출력핀 번호입니다.3, 4 그리고 5 PWM 출력핀만 가능합니다. 
frequency   int: the frequency for the pulse in Hertz

nPulses   int: the number of pulses to generate
발생할 펄스 수
   
Returns   None
   
Usage   Application
   
Related   pulseRunning()
pulseStop()