SLEEP
Syntax
SLEEP seconds
Description
Delay program execution a number of seconds.
Example
DIRS = $00FF ' set
pins 0 to 7 to output
INS =
0
' and then set them low or to 0 V
FOR I=0 TO 7
SLEEP 1
HIGH I
' set each pin HIGH one after the other every second
NEXT I
Differences from other BASICs
- none from Visual BASIC
- none from PBASIC