.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH GPIOSET "1" "February 2024" "libgpiod v1.6.3" "User Commands" .SH NAME gpioset \- manual page for gpioset v1.6.3 .SH SYNOPSIS .B gpioset [\fI\,OPTIONS\/\fR] \fI\, = = \/\fR... .SH DESCRIPTION Set GPIO line values of a GPIO chip and maintain the state until the process exits .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR: display this message and exit .TP \fB\-v\fR, \fB\-\-version\fR: display the version and exit .TP \fB\-l\fR, \fB\-\-active\-low\fR: set the line active state to low .HP \fB\-B\fR, \fB\-\-bias\fR=\fI\,[as\-is\/\fR|disable|pull\-down|pull\-up] (defaults to 'as\-is'): .IP set the line bias .HP \fB\-D\fR, \fB\-\-drive\fR=\fI\,[push\-pull\/\fR|open\-drain|open\-source] (defaults to 'push\-pull'): .IP set the line drive mode .HP \fB\-m\fR, \fB\-\-mode\fR=\fI\,[exit\/\fR|wait|time|signal] (defaults to 'exit'): .IP tell the program what to do after setting values .TP \fB\-s\fR, \fB\-\-sec\fR=\fI\,SEC\/\fR: specify the number of seconds to wait (only valid for \fB\-\-mode\fR=\fI\,time\/\fR) .TP \fB\-u\fR, \fB\-\-usec\fR=\fI\,USEC\/\fR: specify the number of microseconds to wait (only valid for \fB\-\-mode\fR=\fI\,time\/\fR) .TP \fB\-b\fR, \fB\-\-background\fR: after setting values: detach from the controlling terminal .SS "Biases:" .TP as\-is: leave bias unchanged .TP disable: disable bias .TP pull\-up: enable pull\-up .TP pull\-down: enable pull\-down .SS "Drives:" .TP push\-pull: drive the line both high and low .TP open\-drain: drive the line low or go high impedance .TP open\-source: drive the line high or go high impedance .SS "Modes:" .TP exit: set values and exit immediately .TP wait: set values and wait for user to press ENTER .TP time: set values and sleep for a specified amount of time .TP signal: set values and wait for SIGINT or SIGTERM .PP Note: the state of a GPIO line controlled over the character device reverts to default when the last process referencing the file descriptor representing the device file exits. This means that it's wrong to run gpioset, have it exit and expect the line to continue being driven high or low. It may happen if given pin is floating but it must be interpreted as undefined behavior. .SH AUTHOR Bartosz Golaszewski .SH "REPORTING BUGS" Report bugs to: Bartosz Golaszewski linux-gpio .SH COPYRIGHT Copyright \(co 2017\-2018 Bartosz Golaszewski License: LGPLv2.1 .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.