Reference for Wiring version 0023+. 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. | ||||||
| Syntax | pulseOut(pin, frequency) pulseOut(pin, frequency, nPulses) |
||||||
| Parameters |
|
||||||
| Returns | None | ||||||
| Usage | Application | ||||||
| Related | pulseRunning() pulseStop() |

