| Main index | Section 8 | Options |
The
pin
argument can either be a
pin-number
or a
pin-name.
If it is a number and a pin has this number as its name and you did not use
The options are as follows:
| | |
| Configure pin by setting provided flags. The following flags are currently defined: | |
| IN | Input pin |
| OUT | Output pin |
| OD | Open drain pin |
| PP | Push pull pin |
| TS | Tristate pin |
| PU | Pull-up pin |
| PD | Pull-down pin |
| II | Inverted input pin |
| IO | Inverted output pin |
| | GPIO controller device to use If not specified, defaults to /dev/gpioc0 |
| | list available pins |
| | set the name used to describe the pin |
| | toggle value of provided pin |
| | be verbose: for each listed pin print current configuration |
| | Force pin to be interpreted as a pin number |
| | Force pin to be interpreted as a pin name |
gpioctl -f /dev/gpioc0 -l
gpioctl -f /dev/gpioc0 12 1
gpioctl -f /dev/gpioc0 -c 12 IN
gpioctl -f /dev/gpioc0 -n 12 test
gpioctl -f /dev/gpioc0 -t test
gpioctl -f /dev/gpioc0 -pt 12
| GPIOCTL (8) | June 6, 2018 |
| Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
