PULSOUT
 
Syntax


#include <PULSE.bas>                                        ' source in /Program Files/Coridium/BASIClib

SUB PULSOUT (  pin, microseconds )

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

#include <PULSE.bas>

' Generate a 1 second high pulse on pin 4.
LOW 4
PULSOUT (4, 1000000)

Differences from other BASICs

See also