Skip to content

WAIT

Category: Statement
Syntax: WAIT(pin, digital_state)

Description

Blocks program execution until the digital level read from GPIO pin pin equals the expected digital_state (HIGH or LOW).

See also

Example

10 PIN(4, IN)
20 WAIT(4, HIGH)
30 PRINT("Button pressed")