IDLE
 
Syntax

IDLE ( seconds)
Description


Delay program execution a number of seconds.

This subroutine is defined in RTC.bas   It was originally called SLEEP, but the BASIC compiler now uses that to generate a WFI instruction

Example

#include <RTC.bas>

FOR I=0 TO 7
  IDLE(1)
  IO(I)= 1                 ' set each pin HIGH one after the other every second
NEXT I

Differences from other BASICs

See also