RGB 8X8 Animator icon RGB 8X8 Animator Create, edit and play animated frames on an RGB 8x8 LED matrix via I2C with looping, adjustable pauses and scriptable EZ-Script canvas control. Try it →
 

Wait

Digital.wait(port, valueToWaitFor, [frequencyMs], [ezbIndex], [timeoutMS])

Parameters

port Digital port to set the value of.
valueToWaitFor Digital value to wait for as boolean or integer.
frequencyMs (optional) How often the port is checked in milliseconds.
ezbIndex (optional) Board index of the EZB to read from.
timeoutMS (optional) Number of milliseconds to wait before timeout.

Returns

Nothing

Description

Suspends execution of the script until the value read from the specified digital port is equal to valueToWaitFor. If frequencyMs is provided the port is checked every frequencyMs milliseconds. Otherwise the port is checked as often as possible.