Skip to main content

PAUSE

Syntax

PAUSE ( milliseconds )

Description

Delay program execution a number of milliseconds. 1000 milliseconds is one second WAIT and PAUSE are equivalent.

Example

DIRS = $00FF
' set pins 0 to 7 to output
OUTS
= 255 ' and
then set them hign or to 3.3 V

FOR I=0 TO 7

PAUSE (1000)

LOW I
' set each pin LOW one after the other every second

NEXT I

Differences from other BASICs

  • none from Visual BASIC
  • none from PBASIC

See also