utils icon indicating copy to clipboard operation
utils copied to clipboard

pinctrl: Add "level" mode

Open pelwell opened this issue 9 months ago • 0 comments

"level" mode is a variation on "get" mode that produces compact output, normally a 0 or 1 for each GPIO. If given a range of GPIOs, the results are concatenated into a single line, separated by spaces for easy parsing. In addition to 1s and 0s, - indicates a pin that does not have input enabled at all.

In pin mode ("-p"), the none GPIO pins get additional symbols: 3, 5, 8, G, and '?' indicate 3.3V, 5V, 1,8V, GND and "other". GPIO numbers that are completely invalid are skipped, as they are in other modes.

See: https://github.com/raspberrypi/utils/issues/82

pelwell avatar May 11 '24 09:05 pelwell