thinkyhead

M226 - Wait for Pin State

control Wait for a pin to have a given state.

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


Usage

M226 P<pin> [S<state>]

Argument Description
P<pin>

Pin number

[S<state>]

State 0 or 1. Default -1 for inverted.