Debian Codegraph @

man/gpioset.man

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH GPIOSET "1" "June 2026" "libgpiod v2.2.5" "gpioset"
3 .SH NAME
4 gpioset \- libgpiod command-line utility
5 .SH SYNOPSIS
6 .B gpioset
7 [\fI\,OPTIONS\/\fR] \fI\,<line=value>\/\fR...
8 .SH DESCRIPTION
9 Set values of GPIO lines.
10 .PP
11 Lines are specified by name, or optionally by offset if the chip option
12 is provided.
13 Values may be '1' or '0', or equivalently 'active'/'inactive' or 'on'/'off'.
14 .PP
15 The line output state is maintained until the process exits, but after that
16 is not guaranteed.
17 .SH OPTIONS
18 .TP
19 \fB\-\-banner\fR
20 display a banner on successful startup
21 .TP
22 \fB\-b\fR, \fB\-\-bias\fR <bias>
23 specify the line bias
24 Possible values: 'pull\-down', 'pull\-up', 'disabled'.
25 (default is to leave bias unchanged)
26 .TP
27 \fB\-\-by\-name\fR
28 treat lines as names even if they would parse as an offset
29 .TP
30 \fB\-c\fR, \fB\-\-chip\fR <chip>
31 restrict scope to a particular chip
32 .HP
33 \fB\-C\fR, \fB\-\-consumer\fR <name> consumer name applied to requested lines (default is 'gpioset')
34 .TP
35 \fB\-d\fR, \fB\-\-drive\fR <drive>
36 specify the line drive mode
37 Possible values: 'push\-pull', 'open\-drain', 'open\-source'.
38 (default is 'push\-pull')
39 .TP
40 \fB\-h\fR, \fB\-\-help\fR
41 display this help and exit
42 .TP
43 \fB\-i\fR, \fB\-\-interactive\fR
44 set the lines then wait for additional set commands
45 Use the 'help' command at the interactive prompt to get help
46 for the supported commands.
47 .TP
48 \fB\-l\fR, \fB\-\-active\-low\fR
49 treat the line as active low
50 .TP
51 \fB\-p\fR, \fB\-\-hold\-period\fR <period>
52 the minimum time period to hold lines at the requested values
53 .TP
54 \fB\-s\fR, \fB\-\-strict\fR
55 abort if requested line names are not unique
56 .TP
57 \fB\-t\fR, \fB\-\-toggle\fR <period>[,period]...
58 toggle the line(s) after the specified period(s)
59 If the last period is 0 then gpioset exits else the sequence repeats.
60 .TP
61 \fB\-\-unquoted\fR
62 don't quote line names
63 .TP
64 \fB\-v\fR, \fB\-\-version\fR
65 output version information and exit
66 .TP
67 \fB\-z\fR, \fB\-\-daemonize\fR
68 set values then detach from the controlling terminal
69 .SS "Chips:"
70 .IP
71 A GPIO chip may be identified by number, name, or path.
72 e.g. '0', 'gpiochip0', and '/dev/gpiochip0' all refer to the same chip.
73 .SS "Periods:"
74 .IP
75 Periods are taken as milliseconds unless units are specified. e.g. 10us.
76 Supported units are 'm', 's', 'ms', and 'us' for minutes, seconds, milliseconds and
77 microseconds respectively.
78 .SH NOTE
79 .IP
80 It should not be assumed that a line will retain its state after gpioset exits.
81 When a process exits, any GPIO lines it has requested are automatically released.
82 Once released, the state of a line may be modified by the kernel or another process.
83 To guarantee the requested value, by default gpioset does not exit.
84 .SH AUTHOR
85 Bartosz Golaszewski <[email protected]>
86 .SH "REPORTING BUGS"
87 Report bugs to:
88 Bartosz Golaszewski <[email protected]>
89 linux-gpio <[email protected]>
90 .SH COPYRIGHT
91 Copyright \(co 2017\-2023 Bartosz Golaszewski
92 License: GPL\-2.0\-or\-later
93 .br
94 This is free software: you are free to change and redistribute it.
95 There is NO WARRANTY, to the extent permitted by law.