Changes between Version 2 and Version 3 of gpio


Ignore:
Timestamp:
03/26/2018 05:00:53 PM (20 months ago)
Author:
Cale Collins
Comment:

fixed 9 to 5 typo

Legend:

Unmodified
Added
Removed
Modified
  • gpio

    v2 v3  
    6767 * 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):
    6868{{{
    69 echo 9 > /sys/class/gpio/export # export gpio5 (will create /sys/class/gpio/gpio9 and configure as input)
     69echo 5 > /sys/class/gpio/export # export gpio5 (will create /sys/class/gpio/gpio5 and configure as input)
    7070echo out > /sys/class/gpio/gpio5/direction # make it an output
    7171echo 1 > /sys/class/gpio/gpio5/value # set its value to high