PULSOUT
 
Syntax

void PULSOUT (int pin, int duration);

Description


Generate an output pulse on pin for microseconds.

The IO direction of pin will be set to output. The level of the output will be switched, driven for microseconds, then switched back to its initial level. The minimum pulse period is 1 microseconds.

Example

    printf("Flash LED for 250ms off for 500ms\n");
    OUTPUT(15);
    HIGH(15);
    for (i=0; i<20; i++) { PULSOUT (15,250000); WAIT (500);}

See also