--- tag: m0226 title: Wait for Pin State brief: Wait for a pin to have a given state. author: thinkyhead requires: DIRECT_PIN_CONTROL group: control codes: [ M226 ] notes: parameters: - tag: P optional: false description: Pin number values: - tag: pin type: byte - tag: S optional: true description: State 0 or 1. Default -1 for inverted. values: - tag: state type: byte examples: --- Wait for a pin to have a certain value or state.