thinkyhead

M226 - Wait for Pin State

control Wait for a pin to have a given state. DIRECT_PIN_CONTROL

Description

Wait for a pin to have a certain value or state.

Usage

M226 P<pin> [S<state>]

Parameters

P<pin>

Pin number

    [S<state>]

    State 0 or 1. Default -1 for inverted.