1GPIOSET(1)                       User Commands                      GPIOSET(1)
2
3
4

NAME

6       gpioset - manual page for gpioset v2.0.2
7

SYNOPSIS

9       gpioset [OPTIONS] <line=value>...
10

DESCRIPTION

12       Set values of GPIO lines.
13
14       Lines are specified by name, or optionally by offset if the chip option
15       is provided.  Values may be '1' or '0', or equivalently 'active'/'inac‐
16       tive' or 'on'/'off'.
17
18       The  line output state is maintained until the process exits, but after
19       that is not guaranteed.
20

OPTIONS

22       --banner
23              display a banner on successful startup
24
25       -b, --bias <bias>
26              specify the line bias Possible values:  'pull-down',  'pull-up',
27              'disabled'.  (default is to leave bias unchanged)
28
29       --by-name
30              treat lines as names even if they would parse as an offset
31
32       -c, --chip <chip>
33              restrict scope to a particular chip
34
35       -C, --consumer <name> consumer name applied to requested lines (default
36              is 'gpioset')
37
38       -d, --drive <drive>
39              specify  the  line  drive  mode  Possible  values:  'push-pull',
40              'open-drain', 'open-source'.  (default is 'push-pull')
41
42       -h, --help
43              display this help and exit
44
45       -l, --active-low
46              treat the line as active low
47
48       -p, --hold-period <period>
49              the minimum time period to hold lines at the requested values
50
51       -s, --strict
52              abort if requested line names are not unique
53
54       -t, --toggle <period>[,period]...
55              toggle the line(s) after the specified period(s) If the last pe‐
56              riod is non-zero then the sequence repeats.
57
58       --unquoted
59              don't quote line names
60
61       -v, --version
62              output version information and exit
63
64       -z, --daemonize
65              set values then detach from the controlling terminal
66
67   Chips:
68              A GPIO chip may be identified by number, name,  or  path.   e.g.
69              '0',  'gpiochip0',  and  '/dev/gpiochip0'  all refer to the same
70              chip.
71
72   Periods:
73              Periods are taken as milliseconds unless  units  are  specified.
74              e.g. 10us.  Supported units are 's', 'ms', and 'us'.
75

NOTE

77              The  state  of  a GPIO line controlled over the character device
78              reverts to default when the last process  referencing  the  file
79              descriptor  representing the device file exits.  This means that
80              it's wrong to run gpioset, have it exit and expect the  line  to
81              continue being driven high or low. It may happen if given pin is
82              floating but it must be interpreted as undefined behavior.
83

AUTHOR

85       Bartosz Golaszewski <bartekgola@gmail.com>
86

REPORTING BUGS

88       Report bugs to:
89           Bartosz Golaszewski <bartekgola@gmail.com>
90           linux-gpio <linux-gpio@vger.kernel.org>
91
93       Copyright © 2017-2023 Bartosz Golaszewski License: GPL-2.0-or-later
94       This is free software: you are free  to  change  and  redistribute  it.
95       There is NO WARRANTY, to the extent permitted by law.
96
97
98
99libgpiod v2.0.2                   August 2023                       GPIOSET(1)
Impressum