Changes between Version 2 and Version 3 of gpio
- Timestamp:
- 03/26/2018 05:00:53 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
gpio
v2 v3 67 67 * to export a GPIO that is available to userspace (ie provided by a gpio controller, not in-use by a kernel driver, and not already exported): 68 68 {{{ 69 echo 9 > /sys/class/gpio/export # export gpio5 (will create /sys/class/gpio/gpio9and configure as input)69 echo 5 > /sys/class/gpio/export # export gpio5 (will create /sys/class/gpio/gpio5 and configure as input) 70 70 echo out > /sys/class/gpio/gpio5/direction # make it an output 71 71 echo 1 > /sys/class/gpio/gpio5/value # set its value to high