| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. |
| 2 |
.TH GPIOGET "1" "June 2026" "libgpiod v2.2.5" "gpioget" |
| 3 |
.SH NAME |
| 4 |
gpioget \- libgpiod command-line utility |
| 5 |
.SH SYNOPSIS |
| 6 |
.B gpioget |
| 7 |
[\fI\,OPTIONS\/\fR] \fI\,<line>\/\fR... |
| 8 |
.SH DESCRIPTION |
| 9 |
Read values of GPIO lines. |
| 10 |
.PP |
| 11 |
Lines are specified by name, or optionally by offset if the chip option |
| 12 |
is provided. |
| 13 |
.SH OPTIONS |
| 14 |
.TP |
| 15 |
\fB\-a\fR, \fB\-\-as\-is\fR |
| 16 |
leave the line direction unchanged, not forced to input |
| 17 |
.TP |
| 18 |
\fB\-b\fR, \fB\-\-bias\fR <bias> |
| 19 |
specify the line bias |
| 20 |
Possible values: 'pull\-down', 'pull\-up', 'disabled'. |
| 21 |
(default is to leave bias unchanged) |
| 22 |
.TP |
| 23 |
\fB\-\-by\-name\fR |
| 24 |
treat lines as names even if they would parse as an offset |
| 25 |
.TP |
| 26 |
\fB\-c\fR, \fB\-\-chip\fR <chip> |
| 27 |
restrict scope to a particular chip |
| 28 |
.HP |
| 29 |
\fB\-C\fR, \fB\-\-consumer\fR <name> consumer name applied to requested lines (default is 'gpioget') |
| 30 |
.TP |
| 31 |
\fB\-h\fR, \fB\-\-help\fR |
| 32 |
display this help and exit |
| 33 |
.TP |
| 34 |
\fB\-l\fR, \fB\-\-active\-low\fR |
| 35 |
treat the line as active low |
| 36 |
.TP |
| 37 |
\fB\-p\fR, \fB\-\-hold\-period\fR <period> |
| 38 |
wait between requesting the lines and reading the values |
| 39 |
.TP |
| 40 |
\fB\-\-numeric\fR |
| 41 |
display line values as '0' (inactive) or '1' (active) |
| 42 |
.TP |
| 43 |
\fB\-s\fR, \fB\-\-strict\fR |
| 44 |
abort if requested line names are not unique |
| 45 |
.TP |
| 46 |
\fB\-\-unquoted\fR |
| 47 |
don't quote line names |
| 48 |
.TP |
| 49 |
\fB\-v\fR, \fB\-\-version\fR |
| 50 |
output version information and exit |
| 51 |
.SS "Chips:" |
| 52 |
.IP |
| 53 |
A GPIO chip may be identified by number, name, or path. |
| 54 |
e.g. '0', 'gpiochip0', and '/dev/gpiochip0' all refer to the same chip. |
| 55 |
.SS "Periods:" |
| 56 |
.IP |
| 57 |
Periods are taken as milliseconds unless units are specified. e.g. 10us. |
| 58 |
Supported units are 'm', 's', 'ms', and 'us' for minutes, seconds, milliseconds and |
| 59 |
microseconds respectively. |
| 60 |
.SH AUTHOR |
| 61 |
Bartosz Golaszewski <[email protected]> |
| 62 |
.SH "REPORTING BUGS" |
| 63 |
Report bugs to: |
| 64 |
Bartosz Golaszewski <[email protected]> |
| 65 |
linux-gpio <[email protected]> |
| 66 |
.SH COPYRIGHT |
| 67 |
Copyright \(co 2017\-2023 Bartosz Golaszewski |
| 68 |
License: GPL\-2.0\-or\-later |
| 69 |
.br |
| 70 |
This is free software: you are free to change and redistribute it. |
| 71 |
There is NO WARRANTY, to the extent permitted by law. |