📖⚡SLEEP

Power down for a short time to save energy.

Syntax

SLEEP duration

duration must be 1 to 65535

duration is in mulitple of approximately 2.3 seconds.

Example

Sleep 1  ' Do nothing for 2.3 seconds


 

' SLEEP Example
' Sleep.txt
' Kic8 

   ' Sleep for a short time between
   ' Toggling a pin

DO

  ' Do something visible
  TOGGLE 0

  ' Power down for 2.3 seconds
  SLEEP 1

LOOP

Related Commands: