Skip to content

Pause program (utime.delay)

What it does: Pauses program execution for the specified time interval.

utime.delay

Inputs

  • TIME: pause length.
  • Field SCALE: unit (eg ms/s).

Output

  • none (command block).

When to use it

  • Simple timing between two program steps.
  • Delay after initialization or between repeated actions.

Tips and pitfalls

  • It is a blocking wait, no further logic is performed during the pause.
  • For more accurate non-blocking control, use timers or ticks logic.

Generated Python example

import utime
utime.sleep_ms(500)