control-gpio
¶
glasgow run control-gpio¶
Sample and drive individual I/O pins via the CLI, the REPL, or a script.
CLI pin actions can be used to configure a pin to be driven strongly (A0=0
or A0=1
),
or to be driven weakly using a pull resistor (A0=H
or A0=L
). The actions are executed
in the order they are provided on the command line.
usage: glasgow run control-gpio [-h] [-V SPEC] --pins PINS [PIN-ACTION ...]
- pin-action¶
pins to drive or sample, e.g.: ‘A0=1’, ‘A1=L’, ‘B5’
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --pins <pins>¶
bind the applet I/O lines ‘pins’ to PINS (default is empty)