' PBASIC library, these routines were written for ARMexpress, and included for general reference
#include <PULSE.bas> ' source in /Program Files/Coridium/BASIClib
SUB PULSOUT ( pin, microseconds )
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.