set_pin

Set the state of a single digital I/O pin

Parameters

integer required
Target pin to configure
allowed values:1 to 16
string required
State of the target pin.
allowed values:I, PG1, PG2
string
Output override for the target pin.
default: X
allowed values:X, L, H
boolean
Disable all implicit conversions and coercions.
default: true

Please refer to Pin Status Definitions and Output override Definitions for the list of available statuses

Note

set_pin only configures the state of the Pin, to generate a pattern on a pin use set_pattern_generator

# Examples