SLEEP
 
Syntax


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

#include <RTC17.bas>             ' for the PROplus and SuperPRO LPC175x

SLEEP ( seconds )

Description

Delay program execution a number of seconds.
Example

#include <RTC.bas>

...

FOR I=0 TO 7
  OUTPUT I
  LOW I                 ' set each pin as output and low
NEXT I
 
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

See also