PULSOUT
Syntax
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
' Generate a 1 second high pulse on pin 4.
LOW 4
PULSOUT 4, 1000
Differences from other BASICs
- no equivalent in Visual BASIC
- measures time in microseconds rather than CPU dependent ticks in PBASIC