pulseOut() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

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 | ### pulseOut()
Examples |
    void setup() {
      pulseOut(29, 10); // generates an infinite pulse of 10Hz on PWM output pin 29
    }

    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 pin available for pulse generation is PWM output pin 29 (only).
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 output pin 29
frequency | int: the frequency for the pulse in Hertz
nPulses | int: the number of pulses to generate
Returns | None
Usage | Application
Related | pulseRunning() pulseStop()

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